Statistiek-1 + R

Verschiltoetsen

» Start

Verschiltoetsen


Verschiltoets voor μ bij gegeven varianties: 


z-Toets

  

Verschiltoets voor μ bij onbekende [maar gelijke] varianties:


        t-Toets


Verschiltoets voor μ bij gepaarde waarnemingen


Tekentoets


        [...]


t-Toets (Buijs 11.6, p.316)


        y<-c(75,78,68,71,84,65,73,67)

        x<-c(80,86,66,75,90,68,78,70)

        t.test(x,y, paired=T)

        

            Paired t-test

        

        data:  x and y 

        t = 3.8644, df = 7, p-value = 0.006177

        alternative hypothesis: true difference in means is not equal to 0 

        95 percent confidence interval:

            1.552381 6.447619 

        sample estimates: mean of the differences 4 


Verschiltoets voor fracties (Buijs 11.7a - p. 318)


    prop.test(c(150,120),c(1000,500), correct=F)

    

        2-sample test for equality of proportions without continuity correction

    

    data:  c(150, 120) out of c(1000, 500) 

    X-squared = 18.2927, df = 1, p-value = 1.894e-05

    alternative hypothesis: two.sided 

    95 percent confidence interval: -0.13348736 -0.04651264 

    sample estimates:

    prop 1 prop 2 

            0.15   0.24 


Verschiltoets voor de mediaan:


Wilcoxon


Bron:

Buijs, A. - Statistiek om mee te werken. Stenfert Kroese, Groningen (2003)