d_categorical: Partial derivatives for ordinal items.

View source: R/derivatives.r

d_categoricalR Documentation

Partial derivatives for ordinal items.

Description

Partial derivatives for ordinal items.

Usage

d_categorical(
  parm,
  p_item,
  etable_item,
  theta,
  pred_data,
  thr,
  cov,
  samp_size,
  num_responses_item,
  num_items,
  num_quad
)

Arguments

parm

Item parameter being maximized.

p_item

Vector of item parameters.

etable_item

E-table for impact.

theta

Matrix of adaptive theta values.

pred_data

Matrix or dataframe of DIF and/or impact predictors.

thr

Threshold value being maximized.

cov

Covariate being maximized.

samp_size

Sample size in dataset.

num_responses_item

Number of responses for item.

num_items

Number of items in dataset.

num_quad

Number of quadrature points used for approximating the latent variable.

Value

a "list" of first and second partial derivatives for categorical item likelihood (to use with coordinate descent and univariate Newton-Raphson)


regDIF documentation built on May 29, 2024, 9:31 a.m.