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

Author(s)

Allen Goebl and Jeff Jones

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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$wt_one, (XX1$R2)[,1])
lines(XX1$wt_one, (XX1$R2)[,2])

Example output



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