View source: R/post_functions.R
getTheta | R Documentation |
getTheta
is a helper function for obtaining theta estimates.
Estimates are obtained using an expected a posteriori (EAP) method.
getTheta(
data,
ipar,
scale = "combined",
theta_grid = seq(-4, 4, 0.1),
prior_dist = "normal",
prior_mean = 0,
prior_sd = 1
)
data |
a |
ipar |
a |
scale |
the index of the scale to use. |
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 = |
getTheta
returns a list
containing EAP estimates.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.