From c855b7dc1855ca11006deb5793bc161e46ea7cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mine=20=C3=87etinkaya-Rundel?= Date: Sun, 24 Sep 2023 18:28:58 -0400 Subject: [PATCH] Fix R2 rounding --- exercises/_07-ex-model-slr.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/_07-ex-model-slr.qmd b/exercises/_07-ex-model-slr.qmd index 48235ea3..5ab8ad47 100644 --- a/exercises/_07-ex-model-slr.qmd +++ b/exercises/_07-ex-model-slr.qmd @@ -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.