R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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,1.1,2,1.8,2,5.2,1,3.5,2,3.9,1,-1.0,1,0.1,2,2.4,1,0.4,1,3.7,2,7.2,1,-0.4,2,8.4,1,5.9,1,1.4,2,8.0,2,0.0,2,2.8,2,8.2,1,0.9,1,0.6,2,5.0,2,5.9,1,-1.0,1,1.6,2,3.2,1,0.5,2,2.6,1,-2.7,2,5.8,2,2.8,1,1.3,1,5.0,1,1.6,1,3.4,2,9.6,2,7.4),dim=c(2,37),dimnames=list(c('G','D'),1:37)) > y <- array(NA,dim=c(2,37),dimnames=list(c('G','D'),1:37)) > 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 = 'Y Variable Name' > xlab = 'X Variable Name' > main = 'Title Goes Here' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > 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