This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.
reyescourses:::course_setup('MA483')
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.1.4 ✔ readr 2.1.4
## ✔ forcats 1.0.0 ✔ stringr 1.5.1
## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1
## ✔ lubridate 1.9.3 ✔ tidyr 1.3.0
## ✔ purrr 1.0.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
## Loading required package: StanHeaders
##
##
## rstan version 2.32.3 (Stan version 2.26.1)
##
##
## For execution on a local, multicore CPU with excess RAM we recommend calling
## options(mc.cores = parallel::detectCores()).
## To avoid recompilation of unchanged Stan programs, we recommend calling
## rstan_options(auto_write = TRUE)
## For within-chain threading using `reduce_sum()` or `map_rect()` Stan functions,
## change `threads_per_chain` option:
## rstan_options(threads_per_chain = 1)
##
##
## Do not specify '-march=native' in 'LOCAL_CPPFLAGS' or a Makevars file
##
##
## Attaching package: 'rstan'
##
##
## The following object is masked from 'package:tidyr':
##
## extract
##
##
## Loading required package: Rcpp
##
## This is rstanarm version 2.26.1
##
## - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
##
## - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
##
## - For execution on a local, multicore CPU with excess RAM we recommend calling
##
## options(mc.cores = parallel::detectCores())
##
##
## Attaching package: 'rstanarm'
##
##
## The following object is masked from 'package:rstan':
##
## loo
##
##
## This is bayesplot version 1.10.0
##
## - Online documentation and vignettes at mc-stan.org/bayesplot
##
## - bayesplot theme set to bayesplot::theme_default()
##
## * Does _not_ affect other ggplot2 plots
##
## * See ?bayesplot_theme_set for details on theme setting
Explain why we might be hesitant to trust the results from this survey.
The population of interest for this survey was the student body, faculty, and staff of Rose-Hulman. Because the survey was simply posted on My.Rose-Hulman, there was no method to ensure that a certain percentage of the population would fill it out. There is a possibility that the survey was only filled out by one group of the population, either students, faculty, or staff. If only one group was responsible for all the responses, the results would be heavily biased. If My-Rose-Hulman was well liked by faculty but hated by students and only students filled out the survey, the marketing team would receive an inaccurate campus opinion. There is also a possibility that many people did not know the survey was on My.Rose-Hulman because when a new system is implemented, many people are reluctant to adopt it. All these reasons should cause us to be skeptical of the results.
bodyfat <- read_csv('BodyFatPercentage.csv')
ggplot(data=bodyfat,
mapping = aes(x = Percent_Fat)) +
geom_histogram(binwidth = 1) +
labs(x = "Percent Fat",
y= "Frequency")