Learn R Programming

ALSM (version 0.1.9)

towway.ci: Confidence intervals for tow way ANOVA

Description

Confidence intervals for tow way ANOVA.

Estimation and confidense interval of Factor Level Mean.

Estimation and confidense interval of Contrast of Factor Level Means

Estimation and confidense interval of linear Combination of Factor level Means

Multiple Pairwise Comparisons and confidense interval of Factor level Means (Tukey and Bonferroni Procedurs)

Multiple Contrasts and confidense interval of Factor Level Means (scheffe and Bonferroni Procedurs)

Etimates and confidense interval Based on Treatment Means

Interactions Are Important:

Multiple Pairwise Comparisons of Treatment Means(Tukey and Bonferroni Procedure.)

Multiple Contrasts of Treatment Means(Scheffe and Bonferroni Procedure.)

Usage

towway.ci(y, x1, x2, mc = NULL, mp = NULL,mt=NULL, mse= NULL,alpha = 0.05)

Arguments

y
response variabel

x1
first factor

x2
second factor

mc
matrix of contrast(s)

mp
matrix of pairwise. each row is one pairwise

mt
matrix of treatment means. (interaction NOT important)

mse
MSE of model

alpha
Confidence intervals calculate with 1-alpha percent

References

Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition. chapter 19.

Examples

Run this code
library('ALSM')
y=HayFeverRelief$y
A=HayFeverRelief$A
B=HayFeverRelief$B

m=matrix(c(1,2,3,0,0,0,.5,-1,.5),byrow = TRUE,nrow = 3)
towway.ci(y,A,B,mc=m)

Run the code above in your browser using DataLab