getTheta {PROsetta} | R Documentation |
Obtain theta estimates
Description
getTheta
is a helper function for obtaining theta estimates.
Estimates are obtained using an expected a posteriori (EAP) method.
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 |
ipar |
a |
scale |
the index of the scale to use. |
model |
the item model to use. Accepts |
theta_grid |
the theta grid to use for numerical integration. (default = |
prior_dist |
the type of prior distribution. Accepts |
prior_mean |
mean of the prior distribution. (default = |
prior_sd |
SD of the prior distribution. (default = |
Value
getTheta
returns a list
containing EAP estimates.
Examples
x <- runLinking(data_asq, method = "FIXEDPAR")
o <- getTheta(data_asq, x$ipar_linked, scale = 1)
o$theta
o$item_idx
o <- getTheta(data_asq, x$ipar_linked, scale = 2)
o$theta
o$item_idx
o <- getTheta(data_asq, x$ipar_linked, scale = "combined")
o$theta
o$item_idx
[Package PROsetta version 0.4.1 Index]