Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
'S' 18 'S' 23 'S' 22 'S' 22 'S' 19 'S' 25 'S' 28 'S' 16 'S' 28 'S' 21 'S' 22 'S' 24 'S' 24 'S' 26 'S' 28 'B' 24 'S' 20 'S' 26 'B' 21 'S' 28 'S' 27 'S' 23 'S' 24 'S' 24 'S' 22 'S' 21 'B' 25 'B' 20 'S' 21 'S' 26 'S' 23 'S' 21 'S' 27 'S' 25 'S' 23 'S' 25 'S' 23 'B' 19 'S' 22 'S' 24 'S' 19 'S' 21 'S' 27 'S' 25 'B' 25 'S' 23 'S' 17 'B' 28 'S' 25 'B' 20 'B' 25 'B' 21 'S' 24 'B' 28 'S' 20 'S' 19 'B' 24 'S' 21 'B' 24 'B' 23 'S' 18 'S' 27 'S' 25 'S' 20 'S' 21 'B' 23 'S' 27 'S' 24 'S' 27 'B' 24 'S' 23 'S' 24 'B' 21 'B' 23 'S' 27 'S' 24 'S' 25 'B' 19 'S' 24 'B' 25 'S' 23 'B' 23 'B' 25 'B' 26 'B' 26 'B' 16 'B' 23 'B' 26 'B' 25 'B' 23 'B' 26 'B' 22 'B' 20 'B' 27 'B' 20 'B' 22 'B' 24 'B' 21 'B' 24 'B' 26 'B' 24 'B' 24 'B' 27 'B' 25 'B' 27 'B' 19 'B' 22 'B' 22 'B' 25 'B' 23 'B' 24 'B' 24 'B' 23 'S' 22 'S' 24 'S' 19 'S' 25 'B' 26 'B' 18 'S' 24 'S' 28 'S' 23 'S' 19 'S' 19 'S' 27 'S' 24 'S' 26 'S' 21 'S' 25 'B' 28 'S' 19 'S' 20 'S' 26 'S' 27 'S' 23 'S' 18 'S' 23 'S' 21 'S' 23 'S' 22 'S' 21 'B' 14 'S' 24 'S' 26 'S' 24 'S' 22 'S' 20 'S' 20 'S' 18 'S' 18 'S' 25 'S' 28 'S' 23 'S' 20 'S' 22 'B' 27 'B' 24 'S' 23 'S' 20 'B' 22 'B' 21 'B' 24 'B' 26 'S' 24 'S' 18 'B' 17 'B' 23 'B' 21 'B' 21 'B' 24 'B' 22 'B' 24 'B' 24 'B' 24 'S' 23 'S' 21 'B' 24 'S' 19 'S' 19 'B' 23 'S' 25 'B' 24 'B' 21 'S' 18 'B' 23 'B' 20 'B' 23 'B' 23 'B' 23 'B' 23 'B' 27 'B' 19 'B' 25 'B' 25 'B' 21 'B' 25 'B' 17 'S' 22 'B' 23 'B' 27 'B' 27 'S' 5 'B' 19 'S' 24 'B' 23 'S' 28 'B' 25 'S' 27 'B' 16 'B' 25 'B' 26 'B' 24 'S' 23 'S' 24 'B' 27 'S' 25 'S' 19 'B' 19 'S' 24 'B' 20 'B' 21 'S' 28 'B' 26 'S' 19 'S' 23 'S' 23 'B' 21 'S' 26 'B' 25 'S' 25 'S' 24 'S' 23 'S' 22 'B' 27 'S' 26 'S' 23 'S' 22 'B' 26 'S' 22 'S' 17 'B' 25 'S' 22 'B' 28 'B' 22 'B' 21 'S' 21 'B' 24 'B' 26 'S' 26 'S' 24 'S' 27 'S' 22 'S' 23 'S' 22 'B' 23 'B' 15 'S' 20 'B' 22 'B' 25 'S' 27 'B' 24 'B' 21 'B' 17 'B' 26 'B' 20 'B' 22 'B' 24 'B' 23 'B' 22 'B' 28 'B' 21 'B' 24 'B' 28 'B' 25 'B' 24 'B' 24 'B' 21 'S' 20 'B' 26 'B' 16 'S' 23 'S' 16 'S' 25 'S' 15 'S' 25 'S' 22 'S' 19 'S' 22 'S' 24 'S' 10 'S' 24 'S' 23 'B' 22 'S' 22 'B' 26 'S' 24 'S' 23 'S' 27 'S' 28 'S' 21 'S' 23 'S' 25 'S' 23 'S' 22 'S' 23 'S' 22 'S' 24 'S' 24 'S' 20 'S' 19 'S' 23 'S' 21 'S' 27 'S' 19 'S' 25 'S' 25 'S' 24 'S' 26 'S' 21 'S' 22 'S' 26 'S' 20 'S' 21 'B' 21 'S' 28 'B' 24 'B' 19 'B' 23 'S' 25 'S' 27 'S' 18 'B' 26 'S' 14 'S' 25 'S' 23 'S' 24 'B' 20 'S' 19 'B' 25 'S' 19 'S' 23 'S' 23 'B' 17 'B' 24 'B' 22 'S' 20 'S' 23 'S' 22 'B' 20 'S' 23 'S' 22 'S' 21 'S' 22 'S' 26 'S' 24 'B' 28 'S' 24 'S' 26 'B' 20 'B' 26 'B' 21 'S' 26 'S' 22 'B' 21 'B' 25 'B' 25 'B' 23 'S' 27 'B' 23 'B' 28 'S' 24 'B' 21 'S' 23 'B' 21 'S' 24 'B' 28 'S' 11 'S' 25 'B' 25 'B' 28 'B' 28 'S' 19 'B' 25 'S' 25 'B' 25 'S' 28 'B' 26 'B' 27 'B' 24 'S' 18 'B' 21 'S' 23 'S' 24 'B' 26 'S' 25 'B' 23 'S' 24 'B' 20 'B' 26 'B' 27 'B' 21 'S' 21 'S' 19 'S' 25 'S' 23 'S' 25 'S' 26 'S' 18 'B' 27 'B' 23 'B' 20 'S' 22 'S' 22 'B' 23 'S' 18 'S' 25 'B' 21 'S' 21 'B' 28 'S' 19 'S' 21 'B' 23 'S' 22 'B' 27 'B' 23 'S' 27 'S' 23 'S' 21 'B' 22 'B' 26 'B' 23 'S' 26 'S' 28 'B' 28 'B' 26 'B' 24 'B' 23 'B' 28 'B' 21 'S' 28 'S' 21 'B' 28 'S' 24 'B' 24 'S' 28 'S' 26 'B' 22 'B' 25 'S' 20 'S' 19 'S' 23 'S' 26 'B' 28 'B' 24 'B' 25 'B' 24 'B' 25 'B' 27 'B' 28 'B' 23 'S' 19 'B' 27 'S' 15 'S' 27 'B' 21 'S' 26 'S' 25 'S' 26 'B' 24 'B' 25 'B' 27 'B' 14 'S' 24 'S' 25 'S' 23 'B' 24 'B' 22 'B' 16 'B' 26 'B' 26 'S' 19 'S' 19 'S' 28 'B' 24 'B' 20 'B' 21 'B' 26 'S' 24
Names of X columns:
course_L AMS.E1
Response Variable (column number)
Factor Variable (column number)
Include Intercept Term ?
TRUE
TRUE
FALSE
Chart options
Title:
Label y-axis:
Label x-axis:
R Code
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){ 'Tukey Plot' 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<-leveneTest(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')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation