Learn R Programming

fourPNO (version 1.0.2)

update_theta: Internal Function for Updating Theta in Gibbs Sampler

Description

Update theta in Gibbs sampler

Usage

update_theta(N, Z, as, bs, theta, mu_theta, Sigma_theta_inv)

Arguments

N
An int, which gives the number of observations. (> 0)
Z
A matrix N by J of continuous augmented data.
as
A vector of item discrimination parameters.
bs
A vector of item threshold parameters.
theta
A vector of prior thetas.
mu_theta
The prior mean for theta.
Sigma_theta_inv
The prior inverse variance for theta.

Value

  • A vector of thetas.

See Also

Gibbs_4PNO