Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

boot.yhat

Bootstrap metrics produced from /codecalc.yhat


Description

This function is input to boot to bootstrap metrics computed from calc.yhat.

Usage

boot.yhat(data, indices, lmOut,regrout0)

Arguments

data

Original dataset

indices

Vector of indices which define the bootstrap sample

lmOut

Ouput of /codelm

regrout0

Output of /codecalc.yhat

Details

This function is input to boot to bootstrap metrics computed from calc.yhat.

Value

The output of boot.yhat when used in conjunction with boot is of class boot and is not further described here. The output is designed to be useful as input for booteval.yhat

Author(s)

Kim Nimon <kim.nimon@gmail.com>

References

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

See Also

Examples

## Bootstrap regression results predicting paragraph     
  ## comprehension based on three verbal tests: general info, 
  ## sentence comprehension, & word classification
 
  ## Use HS dataset in MBESS 
     if (require ("MBESS")){
     data(HS)

  ## Regression
     lm.out<-lm(t6_paragraph_comprehension~
                t5_general_information+t7_sentence+t8_word_classification,data=HS)

  ## Calculate regression metrics
     regrOut<-calc.yhat(lm.out)

  ## Bootstrap results
     require ("boot")
     boot.out<-boot(HS,boot.yhat,100,lmOut=lm.out,regrout0=regrOut)
     }

yhat

Interpreting Regression Effects

v2.0-3
GPL (>= 2)
Authors
Kim Nimon <kim.nimon@gmail.com>, Fred Oswald, and J. Kyle Roberts.
Initial release
2020-12-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.