R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,7 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,1 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,6 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,5 + ,'NS' + ,'hot' + ,11 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,3 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,1 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild') + ,dim=c(3 + ,80) + ,dimnames=list(c('Rating' + ,'Status' + ,'Curry ') + ,1:80)) > y <- array(NA,dim=c(3,80),dimnames=list(c('Rating','Status','Curry '),1:80)) > 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 = 'TRUE' > par3 = '3' > par2 = '1' > par1 = '2' > 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, 2011, 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]) There were 50 or more warnings (use warnings() to see the first 50) > f1<-as.character(x[,cat2]) > f2 <- as.character(x[,cat3]) > xdf<-data.frame(x1,f1, f2) > (V1<-dimnames(y)[[1]][cat1]) [1] "Status" > (V2<-dimnames(y)[[1]][cat2]) [1] "Rating" > (V3 <-dimnames(y)[[1]][cat3]) [1] "Curry\r" > mynames<- c(V1, V2, V3) > xdf2<-xdf > names(xdf2)<-mynames > names(xdf)<-c('R', 'A', 'B') > mynames <- c(V1, V2, V3) > if(intercept == FALSE)eval (substitute(lmout<-lm(xdf$R ~ xdf$A * xdf$B- 1, data = xdf), list(xdf=quote(xdf2),R=mynames[1],A=mynames[2],B=mynames[3]) ))else eval(substitute(lmout<-lm(xdf$R ~ xdf$A * xdf$B, data = xdf), list(xdf=quote(xdf2),R=mynames[1],A=mynames[2],B=mynames[3]) )) Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors with 2 or more levels Calls: eval ... model.matrix -> model.matrix.default -> contrasts<- Execution halted