R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 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(1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,1 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + ,'NA' + ,1 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,1 + 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 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0 + ,'NA' + ,0) + ,dim=c(2 + ,154) + ,dimnames=list(c('Response' + ,'Treatment') + ,1:154)) > y <- array(NA,dim=c(2,154),dimnames=list(c('Response','Treatment'),1:154)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } There were 50 or more warnings (use warnings() to see the first 50) > par4 = 'FALSE' > par3 = '3' > par2 = '2' > par1 = '1' > ylab = 'Y Variable Name' > xlab = 'X Variable Name' > main = 'Title Goes Here' > 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]) There were 50 or more warnings (use warnings() to see the first 50) > f1<-as.character(x[,cat2]) > f2 <- as.character(x[,cat3]) Error: subscript out of bounds Execution halted