Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_One Factor ANOVA.wasp
Title produced by softwareOne-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)
Date of computationMon, 01 Nov 2010 13:40:20 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Nov/01/t1288618741vt69jnewpqkgyxy.htm/, Retrieved Fri, 26 Apr 2024 02:25:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=90822, Retrieved Fri, 26 Apr 2024 02:25:06 +0000
QR Codes:

Original text written by user:
IsPrivate?This computation is/was private until 2010-11-03
User-defined keywords
Estimated Impact352
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2010-11-01 13:40:20] [d76b387543b13b5e3afd8ff9e5fdc89f] [Current]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Q6 - Long term] [2010-11-07 14:39:24] [1aa8d85d6b335d32b1f6be940e33a166]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2010-11-17 15:35:41] [29e492448d11757ae0fad5ef6e7f8e86]
F           [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Workshop 2 Vraag 6b] [2010-11-18 12:16:49] [91de8b765895d6ee0c73f0d2e284be17]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2010-11-18 15:51:56] [69c775ce4d55db2aa75a88e773e8d700]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [vraag 6 deel 2 wo...] [2010-11-18 17:05:56] [82643889efeee0b265cd2ff213e5137b]
-    D      [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Q6_LT] [2011-11-02 11:38:35] [2adcc8dcd741502b8a9375c7fd3d7ce3]
-    D      [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Q6_LT2] [2011-11-02 11:42:39] [2adcc8dcd741502b8a9375c7fd3d7ce3]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Workshop2 - Vraag 6] [2010-11-20 14:37:55] [91de8b765895d6ee0c73f0d2e284be17]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Question 6] [2011-10-23 09:56:46] [27e29806e0b1d1351a97bc4ee4116294]
- RMP     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Question 6: long ...] [2011-10-26 10:18:30] [baac05fe722f73c103cc2d713fa5bd78]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Question 6, Lange...] [2011-10-26 12:59:12] [9c3137400ced3280b419f1e434c29e1d]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Question 6, Lange...] [2011-10-26 12:59:12] [9c3137400ced3280b419f1e434c29e1d]
- R PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [1-way ANOVA (lang...] [2011-10-28 00:04:57] [7f54ec67e5798cc59f49446b41e2f221]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Workshop 5 - Task...] [2011-10-30 18:26:10] [3deae35ae8526e36953f595ad65f3a1f]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [C5 V6L] [2011-10-31 17:36:38] [74be16979710d4c4e7c6647856088456]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [task 5.6.2] [2011-11-01 17:16:51] [d1ce18d003fa52f731d1c3ce8b58d5f9]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-01 18:24:09] [ee8c3a74bf3b349877806e9a50913c60]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-02 13:23:56] [84fecfa8c8107ac4e0024d8b1730a531]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-02 13:46:12] [84fecfa8c8107ac4e0024d8b1730a531]
- R P       [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-02 13:48:04] [84fecfa8c8107ac4e0024d8b1730a531]
- RMPD      [Two-Way ANOVA] [] [2011-11-02 13:56:17] [84fecfa8c8107ac4e0024d8b1730a531]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-02 13:54:02] [2d3d135c7070430a7cc2b1c9a86f42b1]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [long term] [2011-11-02 15:42:26] [ec2187f7727da5d5d939740b21b8b68a]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Workshop 5: Quest...] [2011-11-02 15:59:58] [a9a952c1cbc7081c25fad93a34aab827]
-    D      [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Workshop 5: Quest...] [2011-11-02 16:08:57] [a9a952c1cbc7081c25fad93a34aab827]
- RM          [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-15 19:22:16] [74be16979710d4c4e7c6647856088456]
- R         [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-15 19:23:34] [74be16979710d4c4e7c6647856088456]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-03 17:29:12] [86f7284edee3dbb8ea5c7e2dec87d892]
- R P       [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-03 17:31:25] [86f7284edee3dbb8ea5c7e2dec87d892]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [WS5 - Q6 - Lange ...] [2011-11-08 15:26:49] [43a132f5d1d3e2c258a569e3803c6f06]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-08 16:31:26] [aa6b3f8e5b050429abaad141c7204e84]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-08 16:42:14] [aa6b3f8e5b050429abaad141c7204e84]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-08 16:44:53] [aa6b3f8e5b050429abaad141c7204e84]
- RMPD    [Two-Way ANOVA] [] [2011-11-08 16:47:26] [aa6b3f8e5b050429abaad141c7204e84]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-11-08 18:55:38] [19d77e37efa419fdc040c74a96874aff]
- RMP     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [WS5-Q6.2] [2011-11-08 20:17:48] [74be16979710d4c4e7c6647856088456]
-   PD    [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [One-way ANOVA (2)] [2011-12-10 14:48:18] [8e7c659e1b71a02d35eacc5210237549]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-11 10:56:29] [80bca13c5f9401fbb753952fd2952f4a]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [One- Way Anova La...] [2011-12-14 10:26:04] [2c6fcdc40ef3b1a27716d75d6f478b32]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-15 19:27:03] [74be16979710d4c4e7c6647856088456]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-16 08:30:12] [80bca13c5f9401fbb753952fd2952f4a]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-16 09:08:06] [80bca13c5f9401fbb753952fd2952f4a]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Paper:1-way ANOVA...] [2011-12-16 09:21:37] [ab11d59973a0ec4be849e25906c4cdbf]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-16 10:22:00] [c53df38315e3cbde2dbe0de809195ef2]
- R P       [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [paper: anova lang...] [2012-12-19 09:01:14] [e82bfd05792fd49409106058973f58a8]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [Paper: one-way a...] [2011-12-16 21:44:54] [59720598bc822822e6b5d0c431ef1d7f]
- R P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [] [2011-12-17 10:29:42] [0f1ce50ec9632e206f4325c3ca8926e2]
-   P     [One-Way-Between-Groups ANOVA- Free Statistics Software (Calculator)] [paper] [2011-12-17 13:14:05] [a9dc51245fb8ca00f931d89893d090c8]

[Truncated]
Feedback Forum

Post a new message
Dataseries X:
1	1	4	0	2	'T'	0	3	-1	1	4
1	1	0	0	2	'T'	0	-1	-1	1	0
0	1	4	1	1.5	'T'	1	4	1	1.5	5
0	0	0	0	0	'T'	0	0	0	0	0
1	1	0	1	1	'T'	0	-1	0	0	0
1	1	0	1	2	'T'	0	-1	0	1	0
1	1	0	1	2	'T'	0	-1	0	1	0
0	1	0	1	1	'T'	1	0	1	1	1
0	1	4	1	2	'T'	1	4	1	2	5
1	1	1	0	2	'T'	0	0	-1	1	1
0	0	4	0	2	'T'	0	4	0	2	4
0	1	0	1	0	'T'	1	0	1	0	1
0	1	2	1	0	'T'	1	2	1	0	3
0	1	0	0	2	'T'	1	0	0	2	1
0	0	0	NA	NA	'T'	0	0	NA	NA	0
1	1	0	1	2	'T'	0	-1	0	1	0
1	1	1	0	2	'T'	0	0	-1	1	1
1	1	0	1	0.5	'T'	0	-1	0	-0.5	0
0	1	0	1	2	'T'	1	0	1	2	1
0	0	2	1	0	'T'	0	2	1	0	2
1	1	2	1	2	'T'	0	1	0	1	2
1	1	1	0	0	'T'	0	0	-1	-1	1
0	0	2	NA	NA	'T'	0	2	NA	NA	2
1	0	0	NA	NA	'T'	-1	-1	NA	NA	-1
1	1	3	1	2	'T'	0	2	0	1	3
1	0	0	1	0	'T'	-1	-1	0	-1	-1
1	1	0	NA	NA	'T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R Server'Gwilym Jenkins' @ 72.249.127.135

\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' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=90822&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' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=90822&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=90822&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' @ 72.249.127.135







ANOVA Model
post3-pre ~ Treatment
means0.3-0.067-0.267

\begin{tabular}{lllllllll}
\hline
ANOVA Model \tabularnewline
post3-pre  ~  Treatment \tabularnewline
means & 0.3 & -0.067 & -0.267 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=90822&T=1

[TABLE]
[ROW][C]ANOVA Model[/C][/ROW]
[ROW][C]post3-pre  ~  Treatment[/C][/ROW]
[ROW][C]means[/C][C]0.3[/C][C]-0.067[/C][C]-0.267[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=90822&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=90822&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
post3-pre ~ Treatment
means0.3-0.067-0.267







ANOVA Statistics
DfSum SqMean SqF valuePr(>F)
Treatment21.1560.5781.3720.259
Residuals8736.6330.421

\begin{tabular}{lllllllll}
\hline
ANOVA Statistics \tabularnewline
  & Df & Sum Sq & Mean Sq & F value & Pr(>F) \tabularnewline
Treatment & 2 & 1.156 & 0.578 & 1.372 & 0.259 \tabularnewline
Residuals & 87 & 36.633 & 0.421 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=90822&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]Treatment[/C][C]2[/C][C]1.156[/C][C]0.578[/C][C]1.372[/C][C]0.259[/C][/ROW]
[ROW][C]Residuals[/C][C]87[/C][C]36.633[/C][C]0.421[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=90822&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=90822&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)
Treatment21.1560.5781.3720.259
Residuals8736.6330.421







Tukey Honest Significant Difference Comparisons
difflwruprp adj
S-E-0.067-0.4660.3330.917
T-E-0.267-0.6660.1330.255
T-S-0.2-0.60.20.46

\begin{tabular}{lllllllll}
\hline
Tukey Honest Significant Difference Comparisons \tabularnewline
  & diff & lwr & upr & p adj \tabularnewline
S-E & -0.067 & -0.466 & 0.333 & 0.917 \tabularnewline
T-E & -0.267 & -0.666 & 0.133 & 0.255 \tabularnewline
T-S & -0.2 & -0.6 & 0.2 & 0.46 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=90822&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]S-E[/C][C]-0.067[/C][C]-0.466[/C][C]0.333[/C][C]0.917[/C][/ROW]
[ROW][C]T-E[/C][C]-0.267[/C][C]-0.666[/C][C]0.133[/C][C]0.255[/C][/ROW]
[ROW][C]T-S[/C][C]-0.2[/C][C]-0.6[/C][C]0.2[/C][C]0.46[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=90822&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=90822&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
S-E-0.067-0.4660.3330.917
T-E-0.267-0.6660.1330.255
T-S-0.2-0.60.20.46







Levenes Test for Homogeneity of Variance
DfF valuePr(>F)
Group21.2470.292
87

\begin{tabular}{lllllllll}
\hline
Levenes Test for Homogeneity of Variance \tabularnewline
  & Df & F value & Pr(>F) \tabularnewline
Group & 2 & 1.247 & 0.292 \tabularnewline
  & 87 &   &   \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=90822&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]2[/C][C]1.247[/C][C]0.292[/C][/ROW]
[ROW][C] [/C][C]87[/C][C] [/C][C] [/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=90822&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=90822&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)
Group21.2470.292
87



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = TRUE ;
Parameters (R input):
par1 = 9 ; par2 = 6 ; par3 = TRUE ;
R code (references can be found in the software module):
cat1 <- as.numeric(par1) #
cat2<- as.numeric(par2) #
intercept<-as.logical(par3)
x <- t(x)
x1<-as.numeric(x[,cat1])
f1<-as.character(x[,cat2])
xdf<-data.frame(x1,f1)
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
names(xdf)<-c('Response', 'Treatment')
if(intercept == FALSE) (lmxdf<-lm(Response ~ Treatment - 1, data = xdf) ) else (lmxdf<-lm(Response ~ Treatment, data = xdf) )
(aov.xdf<-aov(lmxdf) )
(anova.xdf<-anova(lmxdf) )
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'ANOVA Model', length(lmxdf$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, paste(V1, ' ~ ', V2), length(lmxdf$coefficients)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'means',,TRUE)
for(i in 1:length(lmxdf$coefficients)){
a<-table.element(a, round(lmxdf$coefficients[i], digits=3),,FALSE)
}
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
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)
a<-table.row.start(a)
a<-table.element(a, V2,,TRUE)
a<-table.element(a, anova.xdf$Df[1],,FALSE)
a<-table.element(a, round(anova.xdf$'Sum Sq'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Mean Sq'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'F value'[1], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Pr(>F)'[1], digits=3),,FALSE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residuals',,TRUE)
a<-table.element(a, anova.xdf$Df[2],,FALSE)
a<-table.element(a, round(anova.xdf$'Sum Sq'[2], digits=3),,FALSE)
a<-table.element(a, round(anova.xdf$'Mean Sq'[2], digits=3),,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(Response ~ Treatment, data=xdf, xlab=V2, ylab=V1)
dev.off()
if(intercept==TRUE){
thsd<-TukeyHSD(aov.xdf)
bitmap(file='TukeyHSDPlot.png')
plot(thsd)
dev.off()
}
if(intercept==TRUE){
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(i in 1:length(rownames(thsd[[1]]))){
a<-table.row.start(a)
a<-table.element(a,rownames(thsd[[1]])[i], 1, TRUE)
for(j in 1:4){
a<-table.element(a,round(thsd[[1]][i,j], digits=3), 1, FALSE)
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
}
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(lmxdf)
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,round(lt.lmxdf[[i]][1], digits=3), 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')