.solveWt {iopsych} | R Documentation |
Correlation between weighted predictor composite and criterion.
.solveWt(wt_vec, rxx, rxy)
wt_vec |
A vector of predictor weights. |
rxx |
A matrix of predictor intercorrelations. |
rxy |
A vector of predictor, criterion correlations. |
A correlation coefficent.
This is a simpler, faster version of the formula used for fuse().
Allen Goebl Jeff Jones
library(iopsych)
data(dls2007)
dat <- dls2007[1:6, 2:7]
rxx <- dat[1:4, 1:4]
rxy <- dat[1:4, 5]
#.solveWt(wt_vec=c(1,1,1,1), rxx=rxx, rxy=rxy)
#.solveWt(wt_vec=c(1,2,3,4), rxx=rxx, rxy=rxy)