solveWtPred: Correlation between weighted predictor composite and...

Description Usage Arguments Value Author(s) Examples

Description

Correlation between weighted predictor composite and criterion.

Usage

1
solveWtPred(rxx, rxy, wt)

Arguments

rxx

A matrix of predictor intercorrelations.

rxy

A vector of predictor criterion intercorrelations, or a matrix with one row per criterion.

wt

A vector of predictor weights, or a matrix with one set of predictor weights per row.

Value

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

Author(s)

Allen Goebl Jeff Jones

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(iopsych)
data(dls2007)
dat <- dls2007[1:6, 2:7]
rxx <- dat[1:4, 1:4]
rxy <- dat[5:6, 1:4]

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

solveWtPred(rxx=rxx, rxy=rxy, wt=wt_mat)

allengoebl/iopsych documentation built on May 10, 2019, 9:22 a.m.