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

Complete! - Jie Chen #110

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jc5230
Copy link

@jc5230 jc5230 commented Nov 19, 2019

No description provided.

# Intervene
sum(D3 == 1) / length(D3) # 0.01%
sum(D2$prediction == "Intervene") / nrow(D2) # 0.01%
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work in general! I am not sure why you need to add "class" in "predict" function. Sometimes it is good to specify the argument and add comments to explain that. Attach the predict function document here for your reference: https://www.rdocumentation.org/packages/stats/versions/3.6.0/topics/predict.lm

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

Successfully merging this pull request may close these issues.

2 participants