penalization: penalization term

Description Usage Arguments Value

View source: R/functions.R

Description

Calculates the certain amount of penalization depeding on DIF-type, lambda and for restriction of intercepts added

Usage

1
2
3
4
5
6
7
8
penalization(
  deltas,
  beta_intercept,
  DIF_type = c("items", "variables", "all.interactions", "none"),
  restr_pen = FALSE,
  lambda = 0,
  lambda_restr = 0
)

Arguments

deltas

A (ncovars x nitems) matrix of DIF-parameters

beta_intercept

A vector of #items parameters

DIF_type

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

restr_pen

For additional penalization to ensure zero sum of intercepts

lambda

penalization parameter

lambda_restr

penalization parameter for restriction

Value

A numeric value for penalization of the Loglikelihood


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