Skip to content
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

Ch5 lab 7 #74

Open
AnatoliiStepaniuk opened this issue Feb 7, 2017 · 0 comments
Open

Ch5 lab 7 #74

AnatoliiStepaniuk opened this issue Feb 7, 2017 · 0 comments

Comments

@AnatoliiStepaniuk
Copy link

I've also got the answer to this exercise close to 0.45.
But if cv.glm is used, I get an answer around 0.25 which is confusing:

glm.fit.all <- glm(Direction ~ Lag1 + Lag2)
LOOCV_error <- cv.glm(frame, glm.fit.all)$delta[1] # is around 0.25 instead of 0.45

Can anyone clarify this?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant