Files
SPT/man/pcm.Rd
2025-04-29 17:59:26 +02:00

34 lines
967 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pcm.R
\name{pcm}
\alias{pcm}
\title{Compute Partial Credit Model (PCM) for polytomous and dichotomous items}
\usage{
pcm(
df = NULL,
items = NULL,
grp = NULL,
dif.items = NULL,
type.dif = NULL,
verbose = T,
fit = "ucminf"
)
}
\arguments{
\item{df}{data.frame containing the data}
\item{items}{vector containing the names of columns where item responses are stored in df}
\item{grp}{string containing the name of the column where an optional group membership variable is stored in df}
\item{dif.items}{vector containing the list of indexes in "items" corresponding to dif items}
\item{type.dif}{vector containing DIF form for each item specified in dif.items. 1 is homogeneous DIF, 0 is heterogeneous DIF}
}
\value{
A data.frame containing various model outputs
}
\description{
This function computes a frequentist PCM, potentially accounting for DIF on specified items
}