Estep: Expectation step.

View source: R/e_step.r

EstepR Documentation

Expectation step.

Description

Expectation step.

Usage

Estep(
  p,
  item_data,
  pred_data,
  item_type,
  mean_predictors,
  var_predictors,
  theta,
  samp_size,
  num_items,
  num_responses,
  adapt_quad,
  num_quad,
  get_eap,
  NA_cases
)

Arguments

p

List of parameters.

item_data

Matrix or dataframe of item responses.

pred_data

Matrix or dataframe of DIF and/or impact predictors.

item_type

Vector of character values indicating the item type.

mean_predictors

Possibly different matrix of predictors for the mean impact equation.

var_predictors

Possibly different matrix of predictors for the variance impact equation.

theta

Vector of fixed quadrature points.

samp_size

Sample size in dataset.

num_items

Number of items in dataset.

num_responses

Number of responses for each item.

adapt_quad

Logical indicating whether to use adaptive quadrature.

num_quad

Number of quadrature points used for approximating the latent variable.

get_eap

Logical indicating whether to compute EAP scores.

NA_cases

Logical vector indicating missing observations.

Value

a "list" of posterior values from the expectation step


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