Learn R Programming

remstimate (version 2.3.14)

bic: bic

Description

A function that returns the BIC (Bayesian Information Criterion) value in a 'remstimate' object.

Usage

bic(object, ...)

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

Value

BIC value of a 'remstimate' object.

Arguments

object

is a remstimate object.

...

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

Methods (by class)

  • bic(remstimate): BIC (Bayesian Information Criterion) value of a 'remstimate' object

Examples

Run this code

# ------------------------------------ #
#       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)

# BIC
bic(tie_mle) 

Run the code above in your browser using DataLab