Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
12.9 12 12.2 8 12.8 11 7.4 13 6.7 11 12.6 10 14.8 7 13.3 10 11.1 15 8.2 12 11.4 12 6.4 10 10.6 10 12 14 6.3 6 11.3 12 11.9 14 9.3 11 9.6 8 10 12 6.4 15 13.8 13 10.8 11 13.8 12 11.7 7 10.9 11 16.1 7 13.4 12 9.9 12 11.5 13 8.3 9 11.7 11 9 12 9.7 15 10.8 12 10.3 6 10.4 5 12.7 13 9.3 11 11.8 6 5.9 12 11.4 10 13 6 10.8 12 12.3 11 11.3 6 11.8 12 7.9 12 12.7 8 12.3 10 11.6 11 6.7 7 10.9 12 12.1 13 13.3 14 10.1 12 5.7 6 14.3 14 8 10 13.3 12 9.3 11 12.5 10 7.6 7 15.9 12 9.2 7 9.1 12 11.1 12 13 10 14.5 10 12.2 12 12.3 12 11.4 12 8.8 8 14.6 10 12.6 5 13 10 12.6 12 13.2 11 9.9 9 7.7 12 10.5 11 13.4 10 10.9 12 4.3 10 10.3 9 11.8 11 11.2 12 11.4 7 8.6 11 13.2 12 12.6 6 5.6 9 9.9 15 8.8 10 7.7 11 9 12 7.3 12 11.4 12 13.6 11 7.9 9 10.7 11 10.3 12 8.3 12 9.6 14 14.2 8 8.5 10 13.5 9 4.9 10 6.4 9 9.6 10 11.6 12 11.1 11 4.35 9 12.7 11 18.1 12 17.85 12 16.6 7 12.6 12 17.1 12 19.1 12 16.1 10 13.35 15 18.4 10 14.7 15 10.6 10 12.6 15 16.2 9 13.6 15 18.9 12 14.1 13 14.5 12 16.15 12 14.75 8 14.8 9 12.45 15 12.65 12 17.35 12 8.6 15 18.4 11 16.1 12 11.6 6 17.75 14 15.25 12 17.65 12 16.35 12 17.65 11 13.6 12 14.35 12 14.75 12 18.25 12 9.9 8 16 8 18.25 12 16.85 12 14.6 11 13.85 10 18.95 11 15.6 12 14.85 13 11.75 12 18.45 12 15.9 10 17.1 10 16.1 11 19.9 8 10.95 12 18.45 9 15.1 12 15 9 11.35 11 15.95 15 18.1 8 14.6 8 15.4 11 15.4 11 17.6 11 13.35 13 19.1 7 15.35 12 7.6 8 13.4 8 13.9 4 19.1 11 15.25 10 12.9 7 16.1 12 17.35 11 13.15 9 12.15 10 12.6 8 10.35 8 15.4 11 9.6 12 18.2 10 13.6 10 14.85 12 14.75 8 14.1 11 14.9 8 16.25 10 19.25 14 13.6 9 13.6 9 15.65 10 12.75 13 14.6 12 9.85 13 12.65 8 19.2 3 16.6 8 11.2 12 15.25 11 11.9 9 13.2 12 16.35 12 12.4 12 15.85 10 18.15 13 11.15 9 15.65 12 17.75 11 7.65 14 12.35 11 15.6 9 19.3 12 15.2 8 17.1 15 15.6 12 18.4 14 19.05 12 18.55 9 19.1 9 13.1 13 12.85 13 9.5 15 4.5 11 11.85 7 13.6 10 11.7 11 12.4 14 13.35 14 11.4 13 14.9 12 19.9 8 11.2 13 14.6 9 17.6 12 14.05 13 16.1 11 13.35 11 11.85 13 11.95 12 14.75 12 15.15 10 13.2 9 16.85 10 7.85 13 7.7 13 12.6 9 7.85 11 10.95 12 12.35 8 9.95 12 14.9 12 16.65 12 13.4 9 13.95 12 15.7 12 16.85 11 10.95 12 15.35 6 12.2 7 15.1 10 17.75 12 15.2 10 14.6 12 16.65 9 8.1 3
Names of X columns:
TOT CONFSOFTTOT
Factor 1
Factor 2
Type of test to use
(?)
Pearson Chi-Squared
Pearson Chi-Squared
Exact Pearson Chi-Squared by Simulation
McNemar Chi-Squared
Fisher Exact Test
Chart options
Title:
R Code
library(vcd) cat1 <- as.numeric(par1) # cat2<- as.numeric(par2) # simulate.p.value=FALSE if (par3 == 'Exact Pearson Chi-Squared by Simulation') simulate.p.value=TRUE x <- t(x) (z <- array(unlist(x),dim=c(length(x[,1]),length(x[1,])))) (table1 <- table(z[,cat1],z[,cat2])) (V1<-dimnames(y)[[1]][cat1]) (V2<-dimnames(y)[[1]][cat2]) bitmap(file='pic1.png') assoc(ftable(z[,cat1],z[,cat2],row.vars=1,dnn=c(V1,V2)),shade=T) dev.off() load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Tabulation of Results',ncol(table1)+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a, ' ', 1,TRUE) for(nc in 1:ncol(table1)){ a<-table.element(a, colnames(table1)[nc], 1, TRUE) } a<-table.row.end(a) for(nr in 1:nrow(table1) ){ a<-table.element(a, rownames(table1)[nr], 1, TRUE) for(nc in 1:ncol(table1) ){ a<-table.element(a, table1[nr, nc], 1, FALSE) } a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable.tab') (cst<-chisq.test(table1, simulate.p.value=simulate.p.value) ) if (par3 == 'McNemar Chi-Squared') { (cst <- mcnemar.test(table1)) } if (par3=='Fisher Exact Test') { (cst <- fisher.test(table1)) } if ((par3 != 'McNemar Chi-Squared') & (par3 != 'Fisher Exact Test')) { a<-table.start() a<-table.row.start(a) a<-table.element(a,'Tabulation of Expected Results',ncol(table1)+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a, ' ', 1,TRUE) for(nc in 1:ncol(table1)){ a<-table.element(a, colnames(table1)[nc], 1, TRUE) } a<-table.row.end(a) for(nr in 1:nrow(table1) ){ a<-table.element(a, rownames(table1)[nr], 1, TRUE) for(nc in 1:ncol(table1) ){ a<-table.element(a, round(cst$expected[nr, nc], digits=2), 1, FALSE) } a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable1.tab') } a<-table.start() a<-table.row.start(a) a<-table.element(a,'Statistical Results',2,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a, cst$method, 2,TRUE) a<-table.row.end(a) a<-table.row.start(a) if (par3=='Pearson Chi-Squared') a<-table.element(a, 'Pearson Chi Square Statistic', 1, TRUE) if (par3=='Exact Pearson Chi-Squared by Simulation') a<-table.element(a, 'Exact Pearson Chi Square Statistic', 1, TRUE) if (par3=='McNemar Chi-Squared') a<-table.element(a, 'McNemar Chi Square Statistic', 1, TRUE) if (par3=='Fisher Exact Test') a<-table.element(a, 'Odds Ratio', 1, TRUE) if (par3=='Fisher Exact Test') { if ((ncol(table1) == 2) & (nrow(table1) == 2)) { a<-table.element(a, round(cst$estimate, digits=2), 1,FALSE) } else { a<-table.element(a, '--', 1,FALSE) } } else { a<-table.element(a, round(cst$statistic, digits=2), 1,FALSE) } a<-table.row.end(a) if(!simulate.p.value){ if(par3!='Fisher Exact Test') { a<-table.row.start(a) a<-table.element(a, 'Degrees of Freedom', 1, TRUE) a<-table.element(a, cst$parameter, 1,FALSE) a<-table.row.end(a) } } a<-table.row.start(a) a<-table.element(a, 'P value', 1, TRUE) a<-table.element(a, round(cst$p.value, digits=2), 1,FALSE) a<-table.row.end(a) a<-table.end(a) table.save(a,file='mytable2.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation