Skip to content

Commit

Permalink
Fix R2 rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Sep 24, 2023
1 parent fdcae8a commit c855b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/_07-ex-model-slr.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ The following regression output is for predicting the heart weight (`Hwt`, in g)

c. Interpret the slope.

d. The $R^2$ of this model is `r round(glance(m)$r.squared)`%. Interpret $R^2$.
d. The $R^2$ of this model is `r round(glance(m)$r.squared, 2)*100`%. Interpret $R^2$.

e. Calculate the correlation coefficient.

Expand Down

0 comments on commit c855b7d

Please sign in to comment.