paretoXX: Computes data needed for a XX Pareto plot.

Description Usage Arguments Value Author(s) Examples

Description

Computes data needed for a XX Pareto plot.

Usage

1
paretoXX(r_mat, x_col, y_col, pts = 100)

Arguments

r_mat

A correlation matrix.

x_col

A vector of columns representing predictor variables.

y_col

A vector of columns representing criterion variables.

pts

The number of points used. Determines accuracy.

Value

betas

A matrix of beta weights for each criteria weight

wt_one

The weight given to the first criterion

multiple_r

The correlation between the predictor and criterion composites

Author(s)

Allen Goebl and Jeff Jones

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Setup Data
data(dls2007)
r_mat <- dls2007[1:6, 2:7]

#Run Model
XX1 <- paretoXX(r_mat=r_mat, x_col=1:4, y_col=5:6)
# Plot Multiple correlations
plot(c(0,1), c(.3,.5), type="n", xlab="C1 Wt", ylab="mr") 
lines((XX1$wts)[,1], (XX1$multiple_r)[,1])
lines((XX1$wts)[,1], (XX1$multiple_r)[,2])

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