% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pcbm.R \name{pcbm} \alias{pcbm} \title{Compute Partial Credit Behavioral Model (PCBSM) for polytomous and dichotomous items} \usage{ pcbm( df = NULL, items = NULL, grp = NULL, X = NULL, dif.items = NULL, type.dif = NULL, verbose = T, fit = "ucminf", method.theta = "eap" ) } \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 the group membership variable is stored in df} \item{X}{vector of strings containing the name of additional adjustment variables to be included in the model} \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} \item{verbose}{set to TRUE to print a detailed output, FALSE otherwise} \item{fit}{string determining the optimization algorithm. Values "ucminf" or "nlminb" ar recommended} \item{method.theta}{string determining the estimation method for individual latent variable values. Either "eap", "mle" or "wle"} } \value{ A data.frame containing various model outputs } \description{ This function computes a frequentist PCBM, potentially accounting for DIF on specified items }