Skip to contents

A function that returns the AIC (Akaike's Information Criterion) value in a 'remstimate' object.

Usage

aic(object, ...)

# S3 method for remstimate
aic(object, ...)

Arguments

object

is a remstimate object.

...

further arguments to be passed to the 'aic' method.

Value

AIC value of a 'remstimate' object.

Methods (by class)

  • aic(remstimate): AIC (Akaike's Information Criterion) value of a 'remstimate' object

Examples


# ------------------------------------ #
#       tie-oriented model: "MLE"      #
# ------------------------------------ #

# loading data
data(tie_data)

# processing event sequence with remify
tie_reh <- remify::remify(edgelist = tie_data$edgelist, model = "tie")
  
# specifying linear predictor
tie_model <- ~ 1 + 
               remstats::indegreeSender()+
               remstats::inertia()+
               remstats::reciprocity() 

# calculating statistics
tie_reh_stats <- remstats::remstats(reh = tie_reh, 
                                    tie_effects = tie_model)

# running estimation
tie_mle <- remstimate::remstimate(reh = tie_reh,
                                  stats = tie_reh_stats,
                                  method = "MLE",
                                  ncores = 1)

# AIC
aic(tie_mle) #
#> [1] 1218.625