Learn R Programming

yhat (version 2.0-4)

rlw: Relative Weights

Description

The function computes relative weights.

Usage

rlw(dataMatrix, dv, ivlist)

Value

The function returns relative weights for each predictor.

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

Author

Kim Nimon <kim.nimon@gmail.com>

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
  ## Relative weights from regression model predicting paragraph 
  ## comprehension based on three verbal tests: general info, 
  ## sentence comprehension, & word classification
 
  ## Use HS dataset in MBESS 
     if (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