Skip to content

Commit

Permalink
update stengen cs
Browse files Browse the repository at this point in the history
  • Loading branch information
amateo250 committed Aug 1, 2024
1 parent e5e9bd3 commit 5d7ff98
Show file tree
Hide file tree
Showing 15 changed files with 3,748 additions and 170 deletions.
Binary file modified cs/ENG/tbe_mva.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions cs/ENG/tbe_mva/scripts/backup/tbe_mva_backup.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ tbe %>%

geom_smooth(method = lm) + # this geometry will add a trend line. "lm" is for "linear model"

facet_grid(~sex) + # adding this function will generate a separate graph for each category of sex
facet_wrap(~sex) + # adding this function will generate a separate graph for each category of sex


scale_x_continuous(name = "Age" , limits = c(0,100)) + # Format the x-axis to a range between 0 and 100
Expand Down Expand Up @@ -162,7 +162,7 @@ tbe %>%

geom_histogram() +

facet_grid(~hyper) + # add facet_grid() to get a graph for each hyper status
facet_wrap(~hyper) + # add facet_wrap() to get a graph for each hyper status

labs(
x = "Length of hospitalization in days",
Expand All @@ -177,7 +177,7 @@ tbe %>%

geom_histogram(aes(y = ..density..)) + #here we are telling ggplot2 to display the density and not the freq count

facet_grid(~hyper) + # add facet_grid() to get a graph for each hyper status
facet_wrap(~hyper) + # add facet_wrap() to get a graph for each hyper status

#the function below will add the normal curve.
stat_function(fun = dnorm, #The fun = argument we are specifying that we want the normal curve
Expand Down
Binary file added images/stengen/beer_data_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/stengen/beer_data_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/stengen/epi.2by2_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,880 changes: 2,843 additions & 37 deletions pages/stengen-en.epiet.html

Large diffs are not rendered by default.

Loading

0 comments on commit 5d7ff98

Please sign in to comment.