RM_DIF_nlm: Rasch model with DIF via nlm

Description Usage Arguments Value

View source: R/functions.R

Description

optimizes loss_function with DIF-part for certain tuning-parameter lambda

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
RM_DIF_nlm(
  data,
  covariates,
  DIF_type,
  lambda,
  starting_betas,
  starting_deltas,
  restr_pen = TRUE,
  lambda_restr = 100,
  ...
)

Arguments

data

matrix of responses

covariates

Matrix of covariate values of all persons (n x num. of covs)

DIF_type

should DIF be calculated? options: "items", "variables", "all.interactions"

lambda

strength of penalization

starting_betas

beta_intercepts starting values for all items (vector)

starting_deltas

starting values for DIF-parameters as matrix (ncovs x nitems)

restr_pen

For additional penalization to ensure zero sum of intercepts

lambda_restr

penalization parameter for restriction

...

other arguments to be passed

Value

result of nlm-optimization for DIF-model via cML-loss-function for a certain penalisation-type and lambda value


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