temp.resid: Residuals from Template Prediction

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

Description

Returns the residuals for each row of y.set as predicted by the vector of values in template.

Usage

1
temp.resid(template, y.set, nomiss = 0.8)

Arguments

template

A vector of values used to predict the values in the row's of of y.set. The length should be equal to nrow(y.set).

y.set

A data.frame or matrix of which the row's are to be predicted by the values in template

nomiss

A numeric element 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

The vector of scores in template is used to predict each row in y.set and the resulting residuals are returned.

Value

A data.frame with the same dimensions as y.set is returned containing the residual values after predicting y.set from the template.

Author(s)

Ryne A. Sherman

See Also

Profile.reg Profile.resid temp.match

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(opt.temp)
data(caq)
	# Template Matching
	# Sometimes we want to know how closely each Profile matches a theoretically
	# or empirically derived Profile (i.e., a template).
	# Here is the template for the optimally adjusted person in the CAQ.
opt.temp 
temp.match(opt.temp, caq)  # The overall template match scores
	# Now if we want what is left after removing the template from each profile...
caq.opt.resids <- temp.resid(opt.temp, caq) 
head(caq.opt.resids)

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