rasch: Fitting Rasch model

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/models.r

Description

Estimate Rasch model approximating the marginal log-likelihood using Laplace approximation.

Usage

1
rasch(items, init = NULL, fixed = NULL)

Arguments

items

Numeric matrix (or data.frame) containing only zeroes and ones (J columns).

init

Optional numeric vector of initial values at which initialize numerical optimization (length J).

fixed

Optional numeric vector (length J). If supplied, only NA entries in fixed will be estimated.

Details

Optimizes raschlikLA numericaly via nlminb. Rows containing at least one NA are removed from items. Standard errors of model parameters are approximated by inverting the observed information matrix.

Value

An object of class rasch is a list containing the following componentes:

call

The matched call

coef

A named vector of coefficients

iter

Number of iterations used to optimize de log-likelihood

loglik

The log-likelihood value

vcov

The variance-covariance matrix of the estimated parameters

items

The item matrix

beta

(Only when regression terms are included) the estimated regression parameters

linpred

(Only when regression terms are included) prediction covariates

Author(s)

Fernando Massa, fmassa@iesta.edu.uy

References

\insertRef

rasch1960raschreg

\insertRef

baker2004raschreg

See Also

raschd, raschreg, raschdreg, irt2p, irt2preg

Examples

1
2
3
n   <- 100
X   <- sim_rasch(n)
mod <- rasch(X)

nando11235813/raschreg documentation built on Oct. 2, 2021, 3:11 p.m.