Escolar Documentos
Profissional Documentos
Cultura Documentos
Teste-t
Domingos Francisco
27/03/2021
library(pacman)
pacman::p_load(dplyr)
## Rows: 30
## Columns: 7
## $ Sujeito <int> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1~
## $ Genero <chr> "M", "F", "M", "M", "F", "F", "M", "M", "M", "M", "F~
## $ Grau_de_Instruçao <chr> "Superior", "Superior", "Superior", "Ens Fundamental~
## $ N_Filhos <int> 1, 0, 0, 0, 0, 2, 0, 0, 1, 2, 0, 3, 0, 0, 1, 1, 0, 0~
## $ Idade <int> 31, 25, 33, 20, 23, 37, 38, 37, 34, 40, 41, 46, 26, ~
## $ Altura <int> 160, 160, 157, 163, 163, 155, 165, 168, 163, 170, 17~
## $ Salario <dbl> 4.10, 2.65, 4.70, 1.45, 1.85, 2.20, 2.35, 2.70, 2.90~
dados
shapiro.test(dados$Altura)
##
## Shapiro-Wilk normality test
##
## data: dados$Altura
## W = 0.95384, p-value = 0.214
summary(dados$Altura)
A partir do gráfico a gente vê no a mediana os limites superiores, e a bolinha acima que significa o número
discrepante, também conhecido como autliers.
t.test(dados$Altura, mu = 167)
##
## One Sample t-test
##
## data: dados$Altura
## t = 0.70196, df = 29, p-value = 0.4883
## alternative hypothesis: true mean is not equal to 167
## 95 percent confidence interval:
## 164.2572 172.6095
## sample estimates:
## mean of x
## 168.4333