R version 2.15.3 (2013-03-01) -- "Security Blanket" Copyright (C) 2013 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(29,-6.5,21,-7.33,50,49.33,23,-11,35,-2.67,36,-8.33,32,9,44,9.67,42,2.33,39,-12.3,20,-6,73,5.67,38,28.33,43,12,50,-2,32,-11.3,24,1.33,24,3,59,-4.67,41,-5,24,-13,44,2.33,66,37.67,40,7.5,24,5,31,-5.67,45,-4,60,30,35,15.33,39,2),dim=c(2,30),dimnames=list(c('BPVT','RAD'),1:30)) > y <- array(NA,dim=c(2,30),dimnames=list(c('BPVT','RAD'),1:30)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'FALSE' > par3 = '3' > par2 = '2' > par1 = '1' > ylab = 'BPVT' > xlab = 'RAD' > main = 'Two-Way ANOVA: BPVT-RAD' > par4 <- 'FALSE' > par3 <- '3' > par2 <- '2' > par1 <- '1' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: aston2 > #To cite this work: Ian E. Holliday, 2012, Two-Way ANOVA (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_Two%20Factor%20ANOVA.wasp/ > #Source of accompanying publication: > # > cat1 <- as.numeric(par1) # > cat2<- as.numeric(par2) # > cat3 <- as.numeric(par3) > intercept<-as.logical(par4) > x <- t(x) > x1<-as.numeric(x[,cat1]) > f1<-as.character(x[,cat2]) > f2 <- as.character(x[,cat3]) Error: subscript out of bounds Execution halted