#12121098
#Cara Manual
#Input
z = (xbar-mu0)/(sigma/sqrt(n)) #z hitung
#Cara Otomatis
library(TeachingDemos)
alternative = c(“two.sided”,”less”,”greater”),
conf.level = 0.95)
#Kasus rataan tidak diketahui
#Cara Manual
#Input
x #data
t = (xbar-mu0)/(s/sqrt(n)) #t hitung
#Cara Otomatis
#Input
x1, x2 #data
z = (xbar-mu0)/sqrt((sigma1^2/n1)+(sigma2^2/n2)) #z hitung
#Input
x1, x2 #data
df = ((S1^2/n1) + (S2^2/n2))^2/
(((1/(n1-1))*(S1^2/n1)^2)+((1/(n2-1))*(S2^2/n2)^2))
t = (xbar-mu0)/(sqrt((S1^2/n1)+(S2^2/n2))) #t hitung
#Cara Otomatis
#Input
d = x1 - x2 #data
#Cara Otomatis
#Input
x #data
#Cara Otomatis
library(TeachingDemos)
#Input
x1, x2 #data
F = S1^2/S2^2 #F hitung
#Cara Otomatis
#Uji Kenormalan
x<-c(5.6,5.4,4.3,7.4,5,6.67,6.3,4.8,
data: x
> x<-c(27,13,35,15,33,27,25,25)
> (s<-matrix(x,3,4))
[1,] 27 35 33 25
[2,] 13 15 27 25
> chisq.test(s)
data: s
X-squared = 5.7292, df = 3, p-value = 0.1256