library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.2.1     ✔ readr     2.2.0
## ✔ forcats   1.0.1     ✔ stringr   1.6.0
## ✔ ggplot2   4.0.3     ✔ tibble    3.3.1
## ✔ lubridate 1.9.5     ✔ tidyr     1.3.2
## ✔ purrr     1.2.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
library(dplyr)
library(lsr)
set.seed(123) 

boy_verisi <- data.frame(id = 1:43)  %>% 
  mutate(boy = round(rnorm(n(), 108.5), 1))

head(boy_verisi)
##   id   boy
## 1  1 107.9
## 2  2 108.3
## 3  3 110.1
## 4  4 108.6
## 5  5 108.6
## 6  6 110.2
shapiro.test(boy_verisi$boy) 
## 
##  Shapiro-Wilk normality test
## 
## data:  boy_verisi$boy
## W = 0.98805, p-value = 0.9289
oneSampleTTest(boy_verisi$boy, mu = 110)
## 
##    One sample t-test 
## 
## Data variable:   boy_verisi$boy 
## 
## Descriptive statistics: 
##                 boy
##    mean     108.493
##    std dev.   0.903
## 
## Hypotheses: 
##    null:        population mean equals 110 
##    alternative: population mean not equal to 110 
## 
## Test results: 
##    t-statistic:  -10.946 
##    degrees of freedom:  42 
##    p-value:  <.001 
## 
## Other information: 
##    two-sided 95% confidence interval:  [108.215, 108.771] 
##    estimated effect size (Cohen's d):  1.669

Sonuç rapor;Tek örneklem t-testi sonucunda, 43 çocuğun ortalama boyunun 110 cm’den anlamlı düzeyde farklı olduğu bulunmuştur (t(42) = -10.95, p < .001). Ortalama boy 108.49 cm olup, referans değerden daha düşüktür.