-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
Statistical Computing with R (2nd Edition).pdf #8
Labels
enhancement
New feature or request
Comments
Extending the linear model with R.pdf |
#9 (comment) here i tried to build random effects while noticed doesn't enhance my model. #degree = 2
mm000 = lm(Profit ~ Date *
poly(Bettor, degree = 2, raw = FALSE) *
poly(Won, degree = 2, raw = FALSE) *
poly(Cancelled, degree = 2, raw = FALSE) *
poly(Rebates, degree = 2, raw = FALSE) *
(1 + Won * Cancelled | Bettor) * (Type / Date), smp2) %>%
extractAIC
mm001 = lm(Profit ~ Date *
poly(Bettor, degree = 2, raw = FALSE) *
poly(Won, degree = 2, raw = FALSE) *
poly(Cancelled, degree = 2, raw = FALSE) *
poly(Rebates, degree = 2, raw = FALSE) *
(1 + Won * Cancelled / Bettor) * (Type / Date), smp2) %>%
extractAIC #degree = 3
mm002 = lm(Profit ~ Date *
poly(Bettor, degree = 3, raw = FALSE) *
poly(Won, degree = 3, raw = FALSE) *
poly(Cancelled, degree = 3, raw = FALSE) *
poly(Rebates, degree = 3, raw = FALSE) *
(1 + Won * Cancelled | Bettor) * (Type / Date), smp2) %>%
extractAIC
mm003 = lm(Profit ~ Date *
poly(Bettor, degree = 3, raw = FALSE) *
poly(Won, degree = 3, raw = FALSE) *
poly(Cancelled, degree = 3, raw = FALSE) *
poly(Rebates, degree = 3, raw = FALSE) *
(1 + Won * Cancelled / Bettor) * (Type / Date), smp2) %>%
extractAIC |
Explanation on random effects & nested lm via randomeffs2.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[问答]求Statistical Computing with R 客课后答案
Pdf电子书:https://englianhu.files.wordpress.com/2020/10/statistical-computer-with-r-2nd-edition.pdf
The text was updated successfully, but these errors were encountered: