Skip to contents

Print the Results of a Markov Order Test

Usage

# S3 method for class 'tna_markov_order'
print(x, digits = 2L, ...)

# S3 method for class 'group_tna_markov_order'
print(x, digits = 2L, ...)

Arguments

x

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

x (invisibly).

Examples

model <- tna(group_regulation)
markov_order(model, max_order = 2, iter = 50)
#> Markov order test (50 permutations per order, 2000 sequences, 27533 states)
#> 
#>  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.216        0.185
#>  significant
#>             
#>          yes
#>           no
#> 
#> Selected order: 1 (sequential permutation tests at level 0.05)
#> Order with the lowest AIC: 1; lowest BIC: 1