Learn R Programming

iopsych (version 0.90.1)

.solveWt: Correlation between weighted predictor composite and criterion.

Description

Correlation between weighted predictor composite and criterion.

Usage

.solveWt(wt_vec, rxx, rxy)

Arguments

wt_vec
A vector of predictor weights.
rxx
A matrix of predictor intercorrelations.
rxy
A vector of predictor, criterion correlations.

Value

A correlation coefficent.

Examples

Run this code
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)

Run the code above in your browser using DataLab