Learn R Programming

yhat (version 2.0-2)

rlw: Relative Weights

Description

The function computes relative weights.

Usage

rlw(dataMatrix, dv, ivlist)

Arguments

dataMatrix

Dataset containing the dependent and independent variables

dv

The dependent variable named in the dataset

ivlist

List of independent variables named in the dataset

Value

The function returns relative weights for each predictor.

Details

The function computes relative weights.

References

Nimon, K., & Oswald, F. L. (2013). Understanding the results of multiple linear regression: Beyond standardized regression coefficients. Organizational Research Methods, 16, 650-674.

Thomas, D. R., Zumbo, B. D., Kwan, E., & Schweitzer, L. (2014). On Johnson's (2000) relative weights method for assessing variable importance: A reanalysis. Multivariate Behavioral Research, 16, 49(4), 329-338.

See Also

aps calc.yhat commonality dominance

Examples

Run this code
# NOT RUN {
  ## Relative weights from regression model predicting paragraph 
  ## comprehension based on three verbal tests: general info, 
  ## sentence comprehension, & word classification
 
  ## Use HS dataset in MBESS 
     require("MBESS")
     data(HS)

  ## Relative Weights
     rwlOut<-rlw(HS,"t6_paragraph_comprehension",
                     c("t5_general_information","t7_sentence","t8_word_classification"))

# }

Run the code above in your browser using DataLab