item.resid: Item Level Residuals

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

Description

Returns the residuals of y.set after predicting the values from the corresponding columsn in x.set.

Usage

1
item.resid(x.set, y.set, nomiss = 0.8)

Arguments

x.set

A data.frame or matrix, with the same dimensions as y.set, of which each column is a predictor of the corresponding column in y.set.

y.set

A data.frame or matrix, with the same dimensions as x.set, of which each column is to be predicted by the correpsonding column in x.set.

nomiss

A numeric between .00 and 1.00 specifying the proportion of x-y pairs required to be complete before NA is returned instead of the regression coefficients. The default of .80 means that if more than 20 percent of the x-y pairs are incomplete an NA will be returned.

Details

Each column in x.set is used to predict its corresponding column in y.set and the residuals are returned.

Value

A data.frame with the same dimensions as y.set, containing the residual values on each item after predicting the item scores from the values in x.set.

Author(s)

Ryne A. Sherman

See Also

lin.coef temp.resid Profile.reg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(caq)
data(RSPdata)
	#Lets predict California Adult Q-Sort scores from extraversion scores 
	#and compute the residual scores on each CAQ item.
head(caq) 
RSPdata$sEXT
dim(caq)
m.sEXT <- matrix(RSPdata$sEXT, nrow = 205, ncol = 100)
head(m.sEXT)
residuals <- item.resid(m.sEXT,caq)
head(residuals) 

multicon documentation built on May 2, 2019, 3:18 a.m.