Skip to content

Commit

Permalink
Update lesson.yaml
Browse files Browse the repository at this point in the history
Missing close parens
  • Loading branch information
Roon committed Apr 28, 2015
1 parent 71a5e11 commit f6f4a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Regression_Models/Binary_Outcomes/lesson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
FigureType: new

- Class: cmd_question
Output: "The model is less credible at scores lower than 9. Of course, there is no data in that region; the Ravens scored at least 9 points in every game. The model gives them a 33% chance of winning if they score 9 points, which may be reasonable, but it also gives them a 16% chance of winning even if they score no points! We can use R's predict() function to see the model's estimates for lower scores. The function will take mdl and a data frame of scores as arguments and will return log odds for the give scores. Call predict(mdl, data.frame(ravenScore=c(0, 3, 6)) and store the result in a variable called lodds."
Output: "The model is less credible at scores lower than 9. Of course, there is no data in that region; the Ravens scored at least 9 points in every game. The model gives them a 33% chance of winning if they score 9 points, which may be reasonable, but it also gives them a 16% chance of winning even if they score no points! We can use R's predict() function to see the model's estimates for lower scores. The function will take mdl and a data frame of scores as arguments and will return log odds for the give scores. Call predict(mdl, data.frame(ravenScore=c(0, 3, 6))) and store the result in a variable called lodds."
CorrectAnswer: 'lodds <- predict(mdl, data.frame(ravenScore=c(0, 3, 6)))'
AnswerTests: expr_creates_var('lodds');omnitest('lodds <- predict(mdl, data.frame(ravenScore=c(0, 3, 6)))')
Hint: Type lodds <- predict(mdl, data.frame(ravenScore=c(0, 3, 6))) to produce the model's estimated log odds of a win for scores 0, 3, and 6.
Expand Down

0 comments on commit f6f4a84

Please sign in to comment.