library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(lsr)
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ forcats   1.0.1     ✔ readr     2.2.0
## ✔ ggplot2   4.0.3     ✔ stringr   1.6.0
## ✔ lubridate 1.9.5     ✔ tibble    3.3.1
## ✔ purrr     1.2.2     ✔ tidyr     1.3.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
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

Normallik Testi

shapiro.test(boy_verisi$boy)
## 
##  Shapiro-Wilk normality test
## 
## data:  boy_verisi$boy
## W = 0.98805, p-value = 0.9289

Shapiro-Wilk normallik testi sonucunda p>0.5 bulunduğu için verilerin normal dağıldığı kabul edilmiştir.

#Tek Örneklem T testi

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

Yapılan tek örneklem t-testi sonucunda, çocukların ortalama boylarının ( Ort= 108.49, SS= 0.90) 110 cm’den anlamlı düzeyde farklı olduğu bulunmuştur, t(42)= -10.95, p< .001. Bu sonuca göre araştırmaya dahil edilen çocukların boy gelişimlerinin beklenen ortalamadan anlamlı derecede düşük olduğu söylenebilir.