BIC_lasso: BIC Lasso

Description Usage Arguments Value

View source: R/functions.R

Description

Calculates the BIC for an L1 penalized model. Needed for picking a hyper parameter lambda.

Usage

1
BIC_lasso(Y, betas, deltas, covariates, DIF_type, delta_unres, tolerance)

Arguments

Y

data

betas

vecotr of intercepts

deltas

(ncov x nitems) matrix of DIF-parameters

covariates

(n x ncovs) matrix of covariate values

DIF_type

can be "items", "variables", "all.interactions", "none"

delta_unres

DIF-parameter estimates from unrestricted estimation

tolerance

Value under which parameters are considered equal to zero for the calculation of degreees of freedom

Value

Returns the BIC for an estimated DIF model with (or without) penalization term


submission-user/cmlDIFlasso documentation built on Dec. 23, 2021, 6:40 a.m.