Learn R Programming

iopsych (version 0.90.1)

paretoXX: Computes data needed for a XX Pareto plot.

Description

Computes data needed for a XX Pareto plot.

Usage

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

  • betasA matrix of beta weights for each criteria weight
  • wt_oneThe weight given to the first criterion
  • multiple_rThe correlation between the predictor and criterion composites

Examples

Run this code
# 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])

Run the code above in your browser using DataLab