Skip to contents

Summarize a Markov Order Test

Usage

# S3 method for class 'tna_markov_order'
summary(object, digits = 2L, ...)

# S3 method for class 'group_tna_markov_order'
summary(object, digits = 2L, ...)

Arguments

object

A tna_markov_order or a group_tna_markov_order object.

digits

An integer, the number of decimals of the numeric columns other than the p-values. The default is 2.

...

Ignored.

Value

A summary.tna_markov_order object, which is a data.frame with one row per order (and per group, in the first column group, for a group_tna_markov_order object) and the columns of the stats element described in markov_order(). The numeric columns other than the p-values are rounded to digits decimals. When the order selected by the tests and the orders selected by AIC and BIC disagree, a note is printed below the table.

Examples

model <- tna(group_regulation)
summary(markov_order(model, max_order = 2, iter = 50))
#>  order    loglik       aic       bic       g2  df p_value p_asymptotic
#>      0 -53280.55 106577.10 106642.88                                  
#>      1 -46660.94  93475.87  94109.05 13203.77  64   0.020        0.000
#>      2 -46377.27  94110.53  99685.82   561.07 532   0.255        0.185
#>  significant
#>             
#>          yes
#>           no