getTheta {PROsetta}R Documentation

Obtain EAP estimates

Description

getTheta is a helper function to calculate EAP estimates.

Usage

getTheta(
  data,
  ipar,
  scale = "combined",
  model = "grm",
  theta_grid = seq(-4, 4, 0.1),
  prior_dist = "normal",
  prior_mean = 0,
  prior_sd = 1
)

Arguments

data

a PROsetta_data object.

ipar

a data.frame containing item parameters.

scale

the index of the scale to use. Set to 'combined' to use the combined scale.

model

the item model to use. Accepts 'grm' or 'gpcm'.

theta_grid

the theta grid to use in calculating EAP estimates.

prior_dist

the type of prior distribution. Accepts 'normal' or 'logistic'.

prior_mean

mean of the prior distribution.

prior_sd

SD of the prior distribution.

Value

getTheta returns a list containing EAP estimates.


[Package PROsetta version 0.3.5 Index]