rfa(pers_obj, na_treat = 0, tr = FALSE, use = "complete.obs", res = "stdr", method = "pearson", cor = TRUE)
"pers"
as a result from function pers
.na_treat=0
to set the residuals to 0, which implys that they are imputed as 'fitting data', i.e., zero residuals. This can attenuate contrasts (see. http://www.rasch.org/rmt/rmt142m.htm). An option is to set it to na_treat=NA
.cor
or cov
, giving a method for computing covariances or correlations in the presence of missing values. This must be (an abbreviation of) one of the strings "everything", "all.obs", "complete.obs", "na.or.complete", or "pairwise.complete.obs". The default is set to use="complete.obs"
which will exclude cases by listwise deletion to keep the correlation matrix positive definit.res="stdr"
refering to Linacre (1998).cor=TRUE
to use the correlation matrix.c("rfa","list")
.
Linacre, J. M. (1998). Detecting multidimensionality: which residual data-type works best? Journal of outcome measurement, 2, 266–283.
######################
########
data(bfiN) # loading reponse data
pers_obj <- pers(pair(bfiN))
result <- rfa(pers_obj)
summary(result)
plot(result)
####
Run the code above in your browser using DataLab