calculate_posterior: Calculate posterior of ability

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

Calculate posterior of ability

Usage

1
calculate_posterior(scores, tau, qp, mu, sd)

Arguments

scores

A vector with PASS/FAIL observations. Scores are coded numerically as pass = 1 and fail = 0.

tau

A vector containing the item difficulties for the item scores in scores estimated from the Rasch model in the preferred metric/scale.

qp

Numeric vector of equally spaced quadrature points.

mu

Numeric scalar. The mean of the prior.

sd

Numeric scalar. Standard deviation of the prior.

Value

A list with three elements:

Name Label
eap Mean of the posterior
gp Vcetor of quadrature points
posterior Vector with posterior distribution.

Since dscore V40.1 the function does not return the "start" element.

Author(s)

Stef van Buuren, Arjan Huizing, 2020


dscore documentation built on Nov. 29, 2020, 1:07 a.m.