d_bernoulli_itemblock: Partial derivatives for binary items by item-blocks.

View source: R/derivatives.r

d_bernoulli_itemblockR Documentation

Partial derivatives for binary items by item-blocks.

Description

Partial derivatives for binary items by item-blocks.

Usage

d_bernoulli_itemblock(
  p_item,
  etable,
  theta,
  pred_data,
  item_data_current,
  samp_size,
  num_items,
  num_predictors,
  num_quad
)

Arguments

p_item

Vector of item parameters.

etable

E-table for item.

theta

Matrix of adaptive theta values.

pred_data

Matrix or dataframe of DIF and/or impact predictors.

item_data_current

Vector of current item responses.

samp_size

Sample size in dataset.

num_items

Number of items in dataset.

num_predictors

Number of predictors 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 multivariate Newton-Raphson)


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