bic_lsr: Compute Bayesian information criterion for a mixedLSR model

View source: R/bic_lsr.R

bic_lsrR Documentation

Compute Bayesian information criterion for a mixedLSR model

Description

Compute Bayesian information criterion for a mixedLSR model

Usage

bic_lsr(a, n, llik)

Arguments

a

A list of coefficient matrices.

n

The sample size.

llik

The log-likelihood of the model.

Value

The BIC.

Examples

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)

mixedLSR documentation built on Nov. 10, 2022, 6:17 p.m.