Learn R Programming

dcmr (version 1.0)

DrawClasses: Draw latent variable values

Description

Produces values of alphas(s) (i.e., latent variable(s)) by using a rejection/acceptance Metropolis-Hastings procedure.

Usage

DrawClasses(nattributes, class0, nus0, observations, nobservations, threshold.values, pmatrix)

Arguments

nattributes
a numeric value indicating number of alphas to be drawn
class0
a numeric vector of previous classes
nus0
a numeric vector of length nclasses for nu parameter estimates
observations
a data frame or matrix of dichotomous responses
nobservations
a numeric value indicating number of rows of the observation data frame or matrix
threshold.values
an nclasses by nitems numeric matrix with appropriate item threshold values
pmatrix
a numeric nclasses by nattributes matrix of all possible attribute profiles

Value

a numeric vector of classes indicating one of the possible attribute profile for each student