We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exercise 1 of 10.4.4 asks
In boot_model(), why don’t I need to force the evaluation of df or model?
boot_model()
df
model
However, boot_model() does not look up model (except as a default in lm):
lm
boot_model <- function(df, formula) { mod <- lm(formula, data = df) fitted <- unname(fitted(mod)) resid <- unname(resid(mod)) rm(mod) function() { fitted + sample(resid) } }
Is this a typo with the correct formulation as follows?
In boot_model(), why don’t I need to force the evaluation of df or formula?
formula
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Exercise 1 of 10.4.4 asks
However,
boot_model()
does not look upmodel
(except as a default inlm
):Is this a typo with the correct formulation as follows?
The text was updated successfully, but these errors were encountered: