View source: R/lrt_order_inad.R
| bic_order_inad | R Documentation |
Fits INAD models across candidate orders and reports BIC-based selection.
bic_order_inad(
y,
max_order = 2,
thinning = "binom",
innovation = "pois",
blocks = NULL,
...
)
y |
Integer matrix. |
max_order |
Maximum order (1 or 2). |
thinning |
Thinning operator. |
innovation |
Innovation distribution. |
blocks |
Optional block assignments. |
... |
Additional arguments. |
A list with class "bic_order_inad" containing:
List of fitted INAD models by candidate order
Named numeric vector of BIC values by order
Order with minimum BIC
Data frame with order, logLik, n_params, and BIC
Input and derived settings used for selection
set.seed(1)
y <- simulate_inad(
n_subjects = 30,
n_time = 5,
order = 1,
thinning = "binom",
innovation = "pois",
alpha = 0.3,
theta = 2
)
ord <- bic_order_inad(y, max_order = 2, thinning = "binom", innovation = "pois", max_iter = 10)
ord$best_order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.