Skip to content

Commit

Permalink
Make var names more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Mar 19, 2024
1 parent d83d07d commit 350eda6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _episodes_rmd/01-introduction-to-high-dimensional-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ explore why high correlations might be an issue in a Challenge.
> > as predictors.
> >
> > ```{r univariate-prostate}
> > model1 <- lm(age ~ gleason, data = prostate)
> > model2 <- lm(age ~ pgg45, data = prostate)
> > model_gleason <- lm(age ~ gleason, data = prostate)
> > model_pgg45 <- lm(age ~ pgg45, data = prostate)
> > ```
> >
> > Check which covariates have a significant efffect
> >
> > ```{r summary-prostate}
> > summary(model1)
> > summary(model2)
> > summary(model_gleason)
> > summary(model_pgg45)
> > ```
> >
> > Based on these results we conclude that both `gleason` and `pgg45` have a
Expand All @@ -257,8 +257,8 @@ explore why high correlations might be an issue in a Challenge.
> > as predictors
> >
> > ```{r multivariate-prostate}
> > model3 <- lm(age ~ gleason + pgg45, data = prostate)
> > summary(model3)
> > model_multivar <- lm(age ~ gleason + pgg45, data = prostate)
> > summary(model_multivar)
> > ```
> >
> > Although `gleason` and `pgg45` have statistically significant univariate effects,
Expand Down

0 comments on commit 350eda6

Please sign in to comment.