sample_mean <- 35
sample_std_dev <- 5
sample_size <- 10
t_value <- qt(0.95, df = sample_size - 1)
threshold <- sample_mean + t_value* (sample_std_dev / sqrt(sample_size))
threshold
## [1] 37.89841
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.