powered by
Compute Bayesian information criterion for a mixedLSR model
bic_lsr(a, n, llik)
The BIC.
A list of coefficient matrices.
The sample size.
The log-likelihood of the model.
n <- 50 simulate <- simulate_lsr(n) model <- mixed_lsr(simulate$x, simulate$y, k = 2, init_lambda = c(1,1), alt_iter = 0) bic_lsr(model$A, n = n, model$llik)
Run the code above in your browser using DataLab