boot.yhat {yhat} | R Documentation |
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
lm
calc.yhat
boot
booteval.yhat
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)
}
[Package yhat version 2.0-4 Index]