Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
2011 12.9 2011 12.2 2011 12.8 2011 7.4 2011 6.7 2011 12.6 2011 14.8 2011 13.3 2011 11.1 2011 8.2 2011 11.4 2011 6.4 2011 10.6 2011 12 2011 6.3 2011 11.3 2011 11.9 2011 9.3 2011 9.6 2011 10 2011 6.4 2011 13.8 2011 10.8 2011 13.8 2011 11.7 2011 10.9 2011 16.1 2011 13.4 2011 9.9 2011 11.5 2011 8.3 2011 11.7 2011 9 2011 9.7 2011 10.8 2011 10.3 2011 10.4 2011 12.7 2011 9.3 2011 11.8 2011 5.9 2011 11.4 2011 13 2011 10.8 2011 12.3 2011 11.3 2011 11.8 2011 7.9 2011 12.7 2011 12.3 2011 11.6 2011 6.7 2011 10.9 2011 12.1 2011 13.3 2011 10.1 2011 5.7 2011 14.3 2011 8 2011 13.3 2011 9.3 2011 12.5 2011 7.6 2011 15.9 2011 9.2 2011 9.1 2011 11.1 2011 13 2011 14.5 2011 12.2 2011 12.3 2011 11.4 2011 8.8 2011 14.6 2011 12.6 2011 13 2011 12.6 2011 13.2 2011 9.9 2011 7.7 2011 10.5 2011 13.4 2011 10.9 2011 4.3 2011 10.3 2011 11.8 2011 11.2 2011 11.4 2011 8.6 2011 13.2 2011 12.6 2011 5.6 2011 9.9 2011 8.8 2011 7.7 2011 9 2011 7.3 2011 11.4 2011 13.6 2011 7.9 2011 10.7 2011 10.3 2011 8.3 2011 9.6 2011 14.2 2011 8.5 2011 13.5 2011 4.9 2011 6.4 2011 9.6 2011 11.6 2011 11.1 2012 4.35 2012 12.7 2012 18.1 2012 17.85 2012 16.6 2012 12.6 2012 17.1 2012 19.1 2012 16.1 2012 13.35 2012 18.4 2012 14.7 2012 10.6 2012 12.6 2012 16.2 2012 13.6 2012 18.9 2012 14.1 2012 14.5 2012 16.15 2012 14.75 2012 14.8 2012 12.45 2012 12.65 2012 17.35 2012 8.6 2012 18.4 2012 16.1 2012 11.6 2012 17.75 2012 15.25 2012 17.65 2012 16.35 2012 17.65 2012 13.6 2012 14.35 2012 14.75 2012 18.25 2012 9.9 2012 16 2012 18.25 2012 16.85 2012 14.6 2012 13.85 2012 18.95 2012 15.6 2012 14.85 2012 11.75 2012 18.45 2012 15.9 2012 17.1 2012 16.1 2012 19.9 2012 10.95 2012 18.45 2012 15.1 2012 15 2012 11.35 2012 15.95 2012 18.1 2012 14.6 2012 15.4 2012 15.4 2012 17.6 2012 13.35 2012 19.1 2012 15.35 2012 7.6 2012 13.4 2012 13.9 2012 19.1 2012 15.25 2012 12.9 2012 16.1 2012 17.35 2012 13.15 2012 12.15 2012 12.6 2012 10.35 2012 15.4 2012 9.6 2012 18.2 2012 13.6 2012 14.85 2012 14.75 2012 14.1 2012 14.9 2012 16.25 2012 19.25 2012 13.6 2012 13.6 2012 15.65 2012 12.75 2012 14.6 2012 9.85 2012 12.65 2012 19.2 2012 16.6 2012 11.2 2012 15.25 2012 11.9 2012 13.2 2012 16.35 2012 12.4 2012 15.85 2012 18.15 2012 11.15 2012 15.65 2012 17.75 2012 7.65 2012 12.35 2012 15.6 2012 19.3 2012 15.2 2012 17.1 2012 15.6 2012 18.4 2012 19.05 2012 18.55 2012 19.1 2012 13.1 2012 12.85 2012 9.5 2012 4.5 2012 11.85 2012 13.6 2012 11.7 2012 12.4 2012 13.35 2012 11.4 2012 14.9 2012 19.9 2012 11.2 2012 14.6 2012 17.6 2012 14.05 2012 16.1 2012 13.35 2012 11.85 2012 11.95 2012 14.75 2012 15.15 2012 13.2 2012 16.85 2012 7.85 2012 7.7 2012 12.6 2012 7.85 2012 10.95 2012 12.35 2012 9.95 2012 14.9 2012 16.65 2012 13.4 2012 13.95 2012 15.7 2012 16.85 2012 10.95 2012 15.35 2012 12.2 2012 15.1 2012 17.75 2012 15.2 2012 14.6 2012 16.65 2012 8.1
Names of X columns:
Course_id_year TOT
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
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation