Bootstrap metrics produced from /codecalc.yhat
This function is input to boot to bootstrap metrics
computed from calc.yhat.
boot.yhat(data, indices, lmOut,regrout0)
data |
Original dataset |
indices |
Vector of indices which define the bootstrap sample |
lmOut |
Ouput of /codelm |
regrout0 |
Output of /codecalc.yhat |
This function is input to boot to bootstrap metrics
computed from calc.yhat.
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
Kim Nimon <kim.nimon@gmail.com>
Nimon, K., & Oswald, F. L. (2013). Understanding the results of multiple linear regression: Beyond standardized regression coefficients. Organizational Research Methods, 16, 650-674.
## 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)
}Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.