Learn R Programming

iopsych (version 0.90.1)

.solveWtExp: Correlation between weighted predictor composite and criterion.

Description

Correlation between weighted predictor composite and criterion.

Usage

.solveWtExp(wt, rxx, rxy_list)

Arguments

wt
A vector of predictor weights, or a matrix of predictor weights with one column per predictor and one row per case.
rxx
A matrix of predictor intercorrelations.
rxy_list
A list of rxy vectors.

Value

A matrix of correlation coefficent with one row per weight vector and one column per rxy vector.

Examples

Run this code
library(iopsych)
data(dls2007)
dat <- dls2007[1:6, 2:7]
rxx <- dat[1:4, 1:4]
rxy1 <- dat[1:4, 5]
rxy2 <- dat[1:4, 6]
rxy_list <- list(rxy1, rxy2)

wt1 <- c(1,1,1,1)
wt2 <- c(1,2,3,4)
wt_mat <- rbind(wt1, wt2)

#.solveWtExp(wt=wt_mat, rxx=rxx, rxy_list=rxy_list)

Run the code above in your browser using DataLab