Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
13 13 14 13 3 'LO' 12 12 8 13 5 'LO' 15 10 12 16 6 'LO' 12 9 7 12 6 'AV' 10 10 10 11 5 'AV' 12 12 7 12 3 'LO' 15 13 16 18 8 'AV' 9 12 11 11 4 'LO' 12 12 14 14 4 'AV' 11 6 6 9 4 'LO' 11 5 16 14 6 'AV' 11 12 11 12 6 'LO' 15 11 16 11 5 'AV' 7 14 12 12 4 'AV' 11 14 7 13 6 'LO' 11 12 13 11 4 'LO' 10 12 11 12 6 'LO' 14 11 15 16 6 'AV' 10 11 7 9 4 'LO' 6 7 9 11 4 'LO' 11 9 7 13 2 'LO' 15 11 14 15 7 'AV' 11 11 15 10 5 'AV' 12 12 7 11 4 'LO' 14 12 15 13 6 'LO' 15 11 17 16 6 'LO' 9 11 15 15 7 'LO' 13 8 14 14 5 'AV' 13 9 14 14 6 'LO' 16 12 8 14 4 'AV' 13 10 8 8 4 'AV' 12 10 14 13 7 'AV' 14 12 14 15 7 'AV' 11 8 8 13 4 'LO' 9 12 11 11 4 'LO' 16 11 16 15 6 'AV' 12 12 10 15 6 'AV' 10 7 8 9 5 'AV' 13 11 14 13 6 'LO' 16 11 16 16 7 'AV' 14 12 13 13 6 'AV' 15 9 5 11 3 'LO' 5 15 8 12 3 'LO' 8 11 10 12 4 'LO' 11 11 8 12 6 'LO' 16 11 13 14 7 'AV' 17 11 15 14 5 'HI' 9 15 6 8 4 'LO' 9 11 12 13 5 'LO' 13 12 16 16 6 'LO' 10 12 5 13 6 'LO' 6 9 15 11 6 'AV' 12 12 12 14 5 'LO' 8 12 8 13 4 'LO' 14 13 13 13 5 'LO' 12 11 14 13 5 'AV' 11 9 12 12 4 'LO' 16 9 16 16 6 'AV' 8 11 10 15 2 'AV' 15 11 15 15 8 'LO' 7 12 8 12 3 'LO' 16 12 16 14 6 'AV' 14 9 19 12 6 'LO' 16 11 14 15 6 'LO' 9 9 6 12 5 'AV' 14 12 13 13 5 'LO' 11 12 15 12 6 'AV' 13 12 7 12 5 'LO' 15 12 13 13 6 'AV' 5 14 4 5 2 'LO' 15 11 14 13 5 'AV' 13 12 13 13 5 'AV' 11 11 11 14 5 'AV' 11 6 14 17 6 'AV' 12 10 12 13 6 'AV' 12 12 15 13 6 'AV' 12 13 14 12 5 'AV' 12 8 13 13 5 'AV' 14 12 8 14 4 'LO' 6 12 6 11 2 'LO' 7 12 7 12 4 'LO' 14 6 13 12 6 'AV' 14 11 13 16 6 'AV' 10 10 11 12 5 'LO' 13 12 5 12 3 'AV' 12 13 12 12 6 'LO' 9 11 8 10 4 'LO' 12 7 11 15 5 'LO' 16 11 14 15 8 'LO' 10 11 9 12 4 'AV' 14 11 10 16 6 'LO' 10 11 13 15 6 'AV' 16 12 16 16 7 'AV' 15 10 16 13 6 'AV' 12 11 11 12 5 'AV' 10 12 8 11 4 'LO' 8 7 4 13 6 'LO' 8 13 7 10 3 'LO' 11 8 14 15 5 'LO' 13 12 11 13 6 'AV' 16 11 17 16 7 'AV' 16 12 15 15 7 'AV' 14 14 17 18 6 'LO' 11 10 5 13 3 'LO' 4 10 4 10 2 'LO' 14 13 10 16 8 'AV' 9 10 11 13 3 'AV' 14 11 15 15 8 'AV' 8 10 10 14 3 'LO' 8 7 9 15 4 'LO' 11 10 12 14 5 'LO' 12 8 15 13 7 'LO' 11 12 7 13 6 'LO' 14 12 13 15 6 'LO' 15 12 12 16 7 'AV' 16 11 14 14 6 'AV' 16 12 14 14 6 'LO' 11 12 8 16 6 'LO' 14 12 15 14 6 'AV' 14 11 12 12 4 'LO' 12 12 12 13 4 'AV' 14 11 16 12 5 'AV' 8 11 9 12 4 'AV' 13 13 15 14 6 'AV' 16 12 15 14 6 'AV' 12 12 6 14 5 'LO' 16 12 14 16 8 'AV' 12 12 15 13 6 'LO' 11 8 10 14 5 'LO' 4 8 6 4 4 'LO' 16 12 14 16 8 'HI' 15 11 12 13 6 'AV' 10 12 8 16 4 'LO' 13 13 11 15 6 'HI' 15 12 13 14 6 'LO' 12 12 9 13 4 'LO' 14 11 15 14 6 'AV' 7 12 13 12 3 'LO' 19 12 15 15 6 'LO' 12 10 14 14 5 'AV' 12 11 16 13 4 'LO' 13 12 14 14 6 'LO' 15 12 14 16 4 'LO' 8 10 10 6 4 'AV' 12 12 10 13 4 'LO' 10 13 4 13 6 'LO' 8 12 8 14 5 'LO' 10 15 15 15 6 'AV' 15 11 16 14 6 'AV' 16 12 12 15 8 'LO' 13 11 12 13 7 'AV' 16 12 15 16 7 'AV' 9 11 9 12 4 'LO' 14 10 12 15 6 'LO' 14 11 14 12 6 'AV' 12 11 11 14 2 'LO'
Names of X columns:
Popularity FindingFriends KnowingPeople Liked Celebrity SumFriends1Cat
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){ 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')
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