https://github.com/cran/eRm
Tip revision: 255ae5f73ea2be6ec75d4974525c069f9d37263c authored by patrick.mair on 19 July 2006, 00:00:00 UTC
version 0.3
version 0.3
Tip revision: 255ae5f
PCM.Rd
\name{PCM}
\alias{PCM}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Estimation of partial credit models}
\description{
This function computes the parameter estimates of a partial credit model for polytomous
item responses by using CML estimation. }
\usage{
PCM(X, W)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{X}{Input data matrix or data frame with item responses (starting from 0); rows represent individuals, columns represent items.}
\item{W}{Design matrix for the PCM. If omitted, the function will compute W automatically.}
}
\details{
Through specification in W, the parameters of the categories with 0 responses
are set to 0 as well as the first category of the first item. Available methods
for PCM-objects are \code{print}, \code{coef}, \code{model.matrix},
\code{vcov}, \code{plot}, \code{summary}.
}
\value{
Returns an object of class \code{Rm} and contains the log-likelihood value,
the parameter estimates and their standard errors.
\item{loglik}{The log-likelihood.}
\item{iter}{Number of iterations required.}
\item{etapar}{Estimated basic item parameters.}
\item{se_eta}{Standard errors of the estimated basic item parameters.}
\item{betapar}{Estimated item parameters.}
\item{LR}{The log-likelihood test statistic for the model.}
}
\references{
Fischer, G. H., and Molenaar, I. (1995). Rasch Models - Foundations,
Recent Developements, and Applications. Springer.
}
\author{Patrick Mair, Reinhold Hatzinger}
\note{Missing Values are not allowed in X.
}
\seealso{\code{\link{print.eRm}},\code{\link{coef.eRm}},\code{\link{vcov.eRm}},\code{\link{model.matrix.eRm}},\code{\link{plot.Rm}},
\code{\link{summary.Rm}}}
\examples{
#PCM with 10 subjects, 3 items
data(X_pcm)
res <- PCM(X_pcm)
res
}
\keyword{models}