library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.1     ✔ stringr   1.6.0
## ✔ ggplot2   4.0.0     ✔ tibble    3.3.0
## ✔ lubridate 1.9.4     ✔ tidyr     1.3.1
## ✔ purrr     1.2.0     
## ── 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
library(dplyr)
library(lsr)
boy_verisi <-data_frame(id = 1:43) %>% 
  mutate(boy =round(rnorm(n(), 108.5), 1))
## Warning: `data_frame()` was deprecated in tibble 1.1.0.
## ℹ Please use `tibble()` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.
head(boy_verisi)
## # A tibble: 6 × 2
##      id   boy
##   <int> <dbl>
## 1     1  110.
## 2     2  108.
## 3     3  110.
## 4     4  107.
## 5     5  108.
## 6     6  109.
shapiro.test(boy_verisi$boy)
## 
##  Shapiro-Wilk normality test
## 
## data:  boy_verisi$boy
## W = 0.96436, p-value = 0.1998
oneSampleTTest(boy_verisi$boy, mu=110)
## 
##    One sample t-test 
## 
## Data variable:   boy_verisi$boy 
## 
## Descriptive statistics: 
##                 boy
##    mean     108.570
##    std dev.   1.083
## 
## Hypotheses: 
##    null:        population mean equals 110 
##    alternative: population mean not equal to 110 
## 
## Test results: 
##    t-statistic:  -8.661 
##    degrees of freedom:  42 
##    p-value:  <.001 
## 
## Other information: 
##    two-sided 95% confidence interval:  [108.237, 108.903] 
##    estimated effect size (Cohen's d):  1.321