Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_Two Factor ANOVA.wasp
Title produced by softwareTwo-Way ANOVA
Date of computationTue, 20 Dec 2011 07:23:21 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Dec/20/t13243838198an9gzkycec7m8r.htm/, Retrieved Mon, 06 May 2024 01:35:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=157946, Retrieved Mon, 06 May 2024 01:35:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Two-Way ANOVA] [D1 2Anova] [2011-12-20 09:12:14] [0f81819b439c6e991d1a2004e9982756]
- R  D  [Two-Way ANOVA] [D1 2Anova] [2011-12-20 12:14:07] [0f81819b439c6e991d1a2004e9982756]
-    D      [Two-Way ANOVA] [D1 2Anova] [2011-12-20 12:23:21] [cdf03f2f7d2bbe3f2da091606ae8e03f] [Current]
-    D        [Two-Way ANOVA] [paper (7)] [2012-12-12 21:44:20] [300ac07a477d84a470eebba12c2af4b2]
Feedback Forum

Post a new message
Dataseries X:
'M'	'G1'	30
'M'	'G1'	29
'M'	'G1'	16
'M'	'G1'	31
'M'	'G1'	30
'M'	'G1'	28
'M'	'G2'	17
'M'	'G2'	32
'M'	'G2'	25
'M'	'G2'	28
'M'	'G2'	29
'M'	'G2'	23
'M'	'G3'	31
'M'	'G3'	27
'M'	'G3'	30
'M'	'G3'	34
'M'	'G3'	35
'M'	'G3'	33
'F'	'G1'	16
'F'	'G1'	24
'F'	'G1'	19
'F'	'G1'	23
'F'	'G1'	16
'F'	'G1'	26
'F'	'G2'	30
'F'	'G2'	21
'F'	'G2'	29
'F'	'G2'	32
'F'	'G2'	17
'F'	'G2'	35
'F'	'G3'	24
'F'	'G3'	18
'F'	'G3'	30
'F'	'G3'	25
'F'	'G3'	22
'F'	'G3'	22




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ jenkins.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157946&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ jenkins.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157946&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157946&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ jenkins.wessa.net







ANOVA Model
xdf2$Kg ~ xdf2$Groep * xdf2$Geslacht
names(Intercept)xdf2$GroepG2xdf2$GroepG3xdf2$GeslachtMxdf2$GroepG2:xdf2$GeslachtMxdf2$GroepG3:xdf2$GeslachtM
means20.6676.66672.83336.6667-8.33331.5

\begin{tabular}{lllllllll}
\hline
ANOVA Model \tabularnewline
xdf2$Kg ~ xdf2$Groep * xdf2$Geslacht \tabularnewline
names & (Intercept) & xdf2$GroepG2 & xdf2$GroepG3 & xdf2$GeslachtM & xdf2$GroepG2:xdf2$GeslachtM & xdf2$GroepG3:xdf2$GeslachtM \tabularnewline
means & 20.667 & 6.6667 & 2.8333 & 6.6667 & -8.3333 & 1.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157946&T=1

[TABLE]
[ROW][C]ANOVA Model[/C][/ROW]
[ROW][C]xdf2$Kg ~ xdf2$Groep * xdf2$Geslacht[/C][/ROW]
[ROW][C]names[/C][C](Intercept)[/C][C]xdf2$GroepG2[/C][C]xdf2$GroepG3[/C][C]xdf2$GeslachtM[/C][C]xdf2$GroepG2:xdf2$GeslachtM[/C][C]xdf2$GroepG3:xdf2$GeslachtM[/C][/ROW]
[ROW][C]means[/C][C]20.667[/C][C]6.6667[/C][C]2.8333[/C][C]6.6667[/C][C]-8.3333[/C][C]1.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157946&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157946&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

ANOVA Model
xdf2$Kg ~ xdf2$Groep * xdf2$Geslacht
names(Intercept)xdf2$GroepG2xdf2$GroepG3xdf2$GeslachtMxdf2$GroepG2:xdf2$GeslachtMxdf2$GroepG3:xdf2$GeslachtM
means20.6676.66672.83336.6667-8.33331.5







ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
2
xdf2$Groep281.05640.5281.62080.21459
xdf2$Geslacht2173.36173.366.93290.013246
xdf2$Groep:xdf2$Geslacht2168.3984.1943.3670.04795
Residuals30750.1725.006

\begin{tabular}{lllllllll}
\hline
ANOVA Statistics \tabularnewline
  & Df & Sum Sq & Mean Sq & F value & Pr(>F) \tabularnewline
 & 2 &  &  &  &  \tabularnewline
xdf2$Groep & 2 & 81.056 & 40.528 & 1.6208 & 0.21459 \tabularnewline
xdf2$Geslacht & 2 & 173.36 & 173.36 & 6.9329 & 0.013246 \tabularnewline
xdf2$Groep:xdf2$Geslacht & 2 & 168.39 & 84.194 & 3.367 & 0.04795 \tabularnewline
Residuals & 30 & 750.17 & 25.006 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157946&T=2

[TABLE]
[ROW][C]ANOVA Statistics[/C][/ROW]
[ROW][C] [/C][C]Df[/C][C]Sum Sq[/C][C]Mean Sq[/C][C]F value[/C][C]Pr(>F)[/C][/ROW]
[ROW][C][/C][C]2[/C][C][/C][C][/C][C][/C][C][/C][/ROW]
[ROW][C]xdf2$Groep[/C][C]2[/C][C]81.056[/C][C]40.528[/C][C]1.6208[/C][C]0.21459[/C][/ROW]
[ROW][C]xdf2$Geslacht[/C][C]2[/C][C]173.36[/C][C]173.36[/C][C]6.9329[/C][C]0.013246[/C][/ROW]
[ROW][C]xdf2$Groep:xdf2$Geslacht[/C][C]2[/C][C]168.39[/C][C]84.194[/C][C]3.367[/C][C]0.04795[/C][/ROW]
[ROW][C]Residuals[/C][C]30[/C][C]750.17[/C][C]25.006[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157946&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157946&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
2
xdf2$Groep281.05640.5281.62080.21459
xdf2$Geslacht2173.36173.366.93290.013246
xdf2$Groep:xdf2$Geslacht2168.3984.1943.3670.04795
Residuals30750.1725.006







Tukey Honest Significant Difference Comparisons
difflwruprp adj
G2-G12.5-2.53287.53280.44827
G3-G13.5833-1.44948.61610.2019
G3-G21.0833-3.94946.11610.85696
M-F4.38890.984727.79310.013246
G2:F-G1:F6.6667-2.114615.4480.22184
G3:F-G1:F2.8333-5.94811.6150.9203
G1:M-G1:F6.6667-2.114615.4480.22184
G2:M-G1:F5-3.781313.7810.52257
G3:M-G1:F112.218719.7810.0076684
G3:F-G2:F-3.8333-12.6154.9480.76761
G1:M-G2:F0-8.78138.78131
G2:M-G2:F-1.6667-10.4487.11460.99181
G3:M-G2:F4.3333-4.44813.1150.66628
G1:M-G3:F3.8333-4.94812.6150.76761
G2:M-G3:F2.1667-6.614610.9480.9736
G3:M-G3:F8.1667-0.6146416.9480.08001
G2:M-G1:M-1.6667-10.4487.11460.99181
G3:M-G1:M4.3333-4.44813.1150.66628
G3:M-G2:M6-2.781314.7810.32516

\begin{tabular}{lllllllll}
\hline
Tukey Honest Significant Difference Comparisons \tabularnewline
  & diff & lwr & upr & p adj \tabularnewline
G2-G1 & 2.5 & -2.5328 & 7.5328 & 0.44827 \tabularnewline
G3-G1 & 3.5833 & -1.4494 & 8.6161 & 0.2019 \tabularnewline
G3-G2 & 1.0833 & -3.9494 & 6.1161 & 0.85696 \tabularnewline
M-F & 4.3889 & 0.98472 & 7.7931 & 0.013246 \tabularnewline
G2:F-G1:F & 6.6667 & -2.1146 & 15.448 & 0.22184 \tabularnewline
G3:F-G1:F & 2.8333 & -5.948 & 11.615 & 0.9203 \tabularnewline
G1:M-G1:F & 6.6667 & -2.1146 & 15.448 & 0.22184 \tabularnewline
G2:M-G1:F & 5 & -3.7813 & 13.781 & 0.52257 \tabularnewline
G3:M-G1:F & 11 & 2.2187 & 19.781 & 0.0076684 \tabularnewline
G3:F-G2:F & -3.8333 & -12.615 & 4.948 & 0.76761 \tabularnewline
G1:M-G2:F & 0 & -8.7813 & 8.7813 & 1 \tabularnewline
G2:M-G2:F & -1.6667 & -10.448 & 7.1146 & 0.99181 \tabularnewline
G3:M-G2:F & 4.3333 & -4.448 & 13.115 & 0.66628 \tabularnewline
G1:M-G3:F & 3.8333 & -4.948 & 12.615 & 0.76761 \tabularnewline
G2:M-G3:F & 2.1667 & -6.6146 & 10.948 & 0.9736 \tabularnewline
G3:M-G3:F & 8.1667 & -0.61464 & 16.948 & 0.08001 \tabularnewline
G2:M-G1:M & -1.6667 & -10.448 & 7.1146 & 0.99181 \tabularnewline
G3:M-G1:M & 4.3333 & -4.448 & 13.115 & 0.66628 \tabularnewline
G3:M-G2:M & 6 & -2.7813 & 14.781 & 0.32516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157946&T=3

[TABLE]
[ROW][C]Tukey Honest Significant Difference Comparisons[/C][/ROW]
[ROW][C] [/C][C]diff[/C][C]lwr[/C][C]upr[/C][C]p adj[/C][/ROW]
[ROW][C]G2-G1[/C][C]2.5[/C][C]-2.5328[/C][C]7.5328[/C][C]0.44827[/C][/ROW]
[ROW][C]G3-G1[/C][C]3.5833[/C][C]-1.4494[/C][C]8.6161[/C][C]0.2019[/C][/ROW]
[ROW][C]G3-G2[/C][C]1.0833[/C][C]-3.9494[/C][C]6.1161[/C][C]0.85696[/C][/ROW]
[ROW][C]M-F[/C][C]4.3889[/C][C]0.98472[/C][C]7.7931[/C][C]0.013246[/C][/ROW]
[ROW][C]G2:F-G1:F[/C][C]6.6667[/C][C]-2.1146[/C][C]15.448[/C][C]0.22184[/C][/ROW]
[ROW][C]G3:F-G1:F[/C][C]2.8333[/C][C]-5.948[/C][C]11.615[/C][C]0.9203[/C][/ROW]
[ROW][C]G1:M-G1:F[/C][C]6.6667[/C][C]-2.1146[/C][C]15.448[/C][C]0.22184[/C][/ROW]
[ROW][C]G2:M-G1:F[/C][C]5[/C][C]-3.7813[/C][C]13.781[/C][C]0.52257[/C][/ROW]
[ROW][C]G3:M-G1:F[/C][C]11[/C][C]2.2187[/C][C]19.781[/C][C]0.0076684[/C][/ROW]
[ROW][C]G3:F-G2:F[/C][C]-3.8333[/C][C]-12.615[/C][C]4.948[/C][C]0.76761[/C][/ROW]
[ROW][C]G1:M-G2:F[/C][C]0[/C][C]-8.7813[/C][C]8.7813[/C][C]1[/C][/ROW]
[ROW][C]G2:M-G2:F[/C][C]-1.6667[/C][C]-10.448[/C][C]7.1146[/C][C]0.99181[/C][/ROW]
[ROW][C]G3:M-G2:F[/C][C]4.3333[/C][C]-4.448[/C][C]13.115[/C][C]0.66628[/C][/ROW]
[ROW][C]G1:M-G3:F[/C][C]3.8333[/C][C]-4.948[/C][C]12.615[/C][C]0.76761[/C][/ROW]
[ROW][C]G2:M-G3:F[/C][C]2.1667[/C][C]-6.6146[/C][C]10.948[/C][C]0.9736[/C][/ROW]
[ROW][C]G3:M-G3:F[/C][C]8.1667[/C][C]-0.61464[/C][C]16.948[/C][C]0.08001[/C][/ROW]
[ROW][C]G2:M-G1:M[/C][C]-1.6667[/C][C]-10.448[/C][C]7.1146[/C][C]0.99181[/C][/ROW]
[ROW][C]G3:M-G1:M[/C][C]4.3333[/C][C]-4.448[/C][C]13.115[/C][C]0.66628[/C][/ROW]
[ROW][C]G3:M-G2:M[/C][C]6[/C][C]-2.7813[/C][C]14.781[/C][C]0.32516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157946&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157946&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Tukey Honest Significant Difference Comparisons
difflwruprp adj
G2-G12.5-2.53287.53280.44827
G3-G13.5833-1.44948.61610.2019
G3-G21.0833-3.94946.11610.85696
M-F4.38890.984727.79310.013246
G2:F-G1:F6.6667-2.114615.4480.22184
G3:F-G1:F2.8333-5.94811.6150.9203
G1:M-G1:F6.6667-2.114615.4480.22184
G2:M-G1:F5-3.781313.7810.52257
G3:M-G1:F112.218719.7810.0076684
G3:F-G2:F-3.8333-12.6154.9480.76761
G1:M-G2:F0-8.78138.78131
G2:M-G2:F-1.6667-10.4487.11460.99181
G3:M-G2:F4.3333-4.44813.1150.66628
G1:M-G3:F3.8333-4.94812.6150.76761
G2:M-G3:F2.1667-6.614610.9480.9736
G3:M-G3:F8.1667-0.6146416.9480.08001
G2:M-G1:M-1.6667-10.4487.11460.99181
G3:M-G1:M4.3333-4.44813.1150.66628
G3:M-G2:M6-2.781314.7810.32516







Levenes Test for Homogeneity of Variance
DfF valuePr(>F)
Group50.468280.79676
30

\begin{tabular}{lllllllll}
\hline
Levenes Test for Homogeneity of Variance \tabularnewline
  & Df & F value & Pr(>F) \tabularnewline
Group & 5 & 0.46828 & 0.79676 \tabularnewline
  & 30 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=157946&T=4

[TABLE]
[ROW][C]Levenes Test for Homogeneity of Variance[/C][/ROW]
[ROW][C] [/C][C]Df[/C][C]F value[/C][C]Pr(>F)[/C][/ROW]
[ROW][C]Group[/C][C]5[/C][C]0.46828[/C][C]0.79676[/C][/ROW]
[ROW][C] [/C][C]30[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=157946&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=157946&T=4

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Levenes Test for Homogeneity of Variance
DfF valuePr(>F)
Group50.468280.79676
30



Parameters (Session):
par1 = 3 ; par2 = 2 ; par3 = 1 ; par4 = TRUE ;
Parameters (R input):
par1 = 3 ; par2 = 2 ; par3 = 1 ; par4 = TRUE ;
R code (references can be found in the software module):
cat1 <- as.numeric(par1) #
cat2<- as.numeric(par2) #
cat3 <- as.numeric(par3)
intercept<-as.logical(par4)
x <- t(x)
x1<-as.numeric(x[,cat1])
f1<-as.character(x[,cat2])
f2 <- as.character(x[,cat3])
xdf<-data.frame(x1,f1, f2)
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
(V3 <-dimnames(y)[[1]][cat3])
mynames<- c(V1, V2, V3)
xdf2<-xdf
names(xdf2)<-mynames
names(xdf)<-c('R', 'A', 'B')
mynames <- c(V1, V2, V3)
if(intercept == FALSE)eval (substitute(lmout<-lm(xdf$R ~ xdf$A * xdf$B- 1, data = xdf), list(xdf=quote(xdf2),R=mynames[1],A=mynames[2],B=mynames[3]) ))else eval(substitute(lmout<-lm(xdf$R ~ xdf$A * xdf$B, data = xdf), list(xdf=quote(xdf2),R=mynames[1],A=mynames[2],B=mynames[3]) ))
oldnames<-names(lmout$coeff)
newnames<-gsub('xdf2$', '', oldnames)
(names(lmout$coeff)<-newnames)
(names(lmout$coefficients)<-newnames)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Model', length(lmout$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
callstr<-gsub('xdf2$', '',as.character(lmout$call$formula))
callstr<-paste(callstr[2], callstr[1], callstr[3])
a<-table.element(a,callstr ,length(lmout$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'names',,TRUE)
for(i in 1:length(lmout$coefficients)){
a<-table.element(a, names(lmout$coefficients[i]),,FALSE)
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'means',,TRUE)
for(i in 1:length(lmout$coefficients)){
a<-table.element(a, signif(lmout$coefficients[i], digits=5),,FALSE)
}
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
(aov.xdf<-aov(lmout) )
(anova.xdf<-anova(lmout) )
rownames(anova.xdf)<-gsub('xdf2$','',rownames(anova.xdf))
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Statistics', 5+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ',,TRUE)
a<-table.element(a, 'Df',,FALSE)
a<-table.element(a, 'Sum Sq',,FALSE)
a<-table.element(a, 'Mean Sq',,FALSE)
a<-table.element(a, 'F value',,FALSE)
a<-table.element(a, 'Pr(>F)',,FALSE)
a<-table.row.end(a)
for(i in 1 : length(rownames(anova.xdf))-1){
a<-table.row.start(a)
a<-table.element(a,rownames(anova.xdf)[i] ,,TRUE)
a<-table.element(a, anova.xdf$Df[1],,FALSE)
a<-table.element(a, signif(anova.xdf$'Sum Sq'[i], digits=5),,FALSE)
a<-table.element(a, signif(anova.xdf$'Mean Sq'[i], digits=5),,FALSE)
a<-table.element(a, signif(anova.xdf$'F value'[i], digits=5),,FALSE)
a<-table.element(a, signif(anova.xdf$'Pr(>F)'[i], digits=5),,FALSE)
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a, 'Residuals',,TRUE)
a<-table.element(a, anova.xdf$'Df'[i+1],,FALSE)
a<-table.element(a, signif(anova.xdf$'Sum Sq'[i+1], digits=5),,FALSE)
a<-table.element(a, signif(anova.xdf$'Mean Sq'[i+1], digits=5),,FALSE)
a<-table.element(a, ' ',,FALSE)
a<-table.element(a, ' ',,FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
bitmap(file='anovaplot.png')
boxplot(R ~ A + B, data=xdf, xlab=V2, ylab=V1, main='Boxplots of ANOVA Groups')
dev.off()
bitmap(file='designplot.png')
xdf2 <- xdf # to preserve xdf make copy for function
names(xdf2) <- c(V1, V2, V3)
plot.design(xdf2, main='Design Plot of Group Means')
dev.off()
bitmap(file='interactionplot.png')
interaction.plot(xdf$A, xdf$B, xdf$R, xlab=V2, ylab=V1, trace.label=V3, main='Possible Interactions Between Anova Groups')
dev.off()
if(intercept==TRUE){
thsd<-TukeyHSD(aov.xdf)
names(thsd) <- c(V2, V3, paste(V2, ':', V3, sep=''))
bitmap(file='TukeyHSDPlot.png')
layout(matrix(c(0,0,1,2,1,2,0,0,3,3,3,3), 2,6))
plot(thsd, las=1)
dev.off()
}
if(intercept==TRUE){
ntables<-length(names(thsd))
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tukey Honest Significant Difference Comparisons', 5,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1, TRUE)
for(i in 1:4){
a<-table.element(a,colnames(thsd[[1]])[i], 1, TRUE)
}
a<-table.row.end(a)
for(nt in 1:ntables){
for(i in 1:length(rownames(thsd[[nt]]))){
a<-table.row.start(a)
a<-table.element(a,rownames(thsd[[nt]])[i], 1, TRUE)
for(j in 1:4){
a<-table.element(a,signif(thsd[[nt]][i,j], digits=5), 1, FALSE)
}
a<-table.row.end(a)
}
} # end nt
a<-table.end(a)
table.save(a,file='hsdtable.tab')
}#end if hsd tables
if(intercept==FALSE){
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'TukeyHSD Message', 1,TRUE)
a<-table.row.end(a)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Must Include Intercept to use Tukey Test ', 1, FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')
}
library(car)
lt.lmxdf<-levene.test(lmout)
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Levenes Test for Homogeneity of Variance', 4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ', 1, TRUE)
for (i in 1:3){
a<-table.element(a,names(lt.lmxdf)[i], 1, FALSE)
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Group', 1, TRUE)
for (i in 1:3){
a<-table.element(a,signif(lt.lmxdf[[i]][1], digits=5), 1, FALSE)
}
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,' ', 1, TRUE)
a<-table.element(a,lt.lmxdf[[1]][2], 1, FALSE)
a<-table.element(a,' ', 1, FALSE)
a<-table.element(a,' ', 1, FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')