View source: R/lrt_order_gau.R
| bic_order_gau | R Documentation |
Fits AD models of increasing orders and selects the best by BIC.
bic_order_gau(y, max_order = 2L, ...)
y |
Numeric matrix with n_subjects rows and n_time columns. |
max_order |
Maximum order to consider. |
... |
Additional arguments passed to |
A list with class gau_bic_order containing:
List of fitted models
BIC values for each order
Order with lowest BIC
Summary table
bic_order_cat, bic_order_inad,
fit_gau
set.seed(1)
y <- simulate_gau(n_subjects = 80, n_time = 6, order = 1, phi = 0.4)
ord <- bic_order_gau(y, max_order = 2)
ord$best_order
ord$table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.