lMvrrc: Lawley multivariate range restriction correction.

Description Usage Arguments Value Author(s) References Examples

Description

Lawley multivariate range restriction correction.

Usage

1
lMvrrc(rcov, vnp, as_cor = TRUE)

Arguments

rcov

The covariance matrix of the restricted sample.

vnp

The covariance matrix of predictors explicitly used for selection. This matrix should be based on the the unrestricted population.

as_cor

This argument can be set to FALSE to return a covariance matrix.

Value

The the correlation matrix or variance covariance in the unrestricted population.

Author(s)

The original function was written by Adam Beatty and adapted by Allen Goebl.

References

Lawley D. N (1943). A note on Karl Pearson's selection formulae. Proceedings of the Royal Society of Edinburgh., 62(Section A, Pt. 1), 28-30.

Examples

1
2
3
4
5
data(rcea1994)
vstar <- rcea1994$vstar
vpp   <- rcea1994$vpp

lMvrrc(rcov=vstar, vnp=vpp)

Example output

           [,1]        [,2]        [,3]       [,4]
[1,] 1.00000000  0.25000000  0.06254509 0.10664023
[2,] 0.25000000  1.00000000 -0.04246105 0.13994188
[3,] 0.06254509 -0.04246105  1.00000000 0.07959423
[4,] 0.10664023  0.13994188  0.07959423 1.00000000

iopsych documentation built on May 2, 2019, 2:27 p.m.