d_bernoulli: Partial derivatives for binary items.

View source: R/derivatives.r

d_bernoulliR Documentation

Partial derivatives for binary items.

Description

Partial derivatives for binary items.

Usage

d_bernoulli(
  parm,
  p_item,
  etable_item,
  theta,
  pred_data,
  cov,
  samp_size,
  num_items,
  num_quad
)

Arguments

parm

Item parameter being maximized.

p_item

Vector of item parameters.

etable_item

E-table for item.

theta

Matrix of adaptive theta values.

pred_data

Matrix or dataframe of DIF and/or impact predictors.

cov

Covariate being maximized.

samp_size

Sample size in dataset.

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 Bernoulli item likelihood (to use with coordinate descent and univariate Newton-Raphson)


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