fuseVec: Computes the correlations between a correlation matrix and a...

Description Usage Arguments Value Author(s) References Examples

Description

Computes the correlations between a correlation matrix and a weighted composite of items from the matrix.

Usage

1
fuseVec(r_mat, wt)

Arguments

r_mat

A correlation matrix.

wt

A vector containing the weights of each item in composite A or a matrix with one row per weight vector.

Value

A vector of correlation coefficients will be returned if wt_a is a vector. If /codewt_b is a matrix, a matrix of correlation coefficients with one row for each weight vector will be returned.

Author(s)

Allen Goebl and Jeff Jones

References

Lord, F.M. & Novick, M.R. (1968). Statisticl theories of mental test scores.

Examples

1
2
3
4
5
6
7
8
data(dls2007)
dat <- dls2007
rxx <- dat[1:4, 2:5]
wt1 <- c(1, 1, 1, 1)
wt2 <- c(2, 0, 1, 0)
wt  <- rbind(wt1, wt2)

fuseVec(r_mat=rxx, wt=wt1)

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