R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(70.8 + ,69.6 + ,69.87 + ,67.47 + ,67.6 + ,67.13 + ,66.27 + ,66.73 + ,68.07 + ,67.8 + ,64.8 + ,64.6 + ,64.2 + ,64.2 + ,63.67 + ,61 + ,59.67 + ,59.67 + ,59.8 + ,60.73 + ,59.4 + ,58.07 + ,57.47 + ,70.73 + ,72.87 + ,66 + ,66.07 + ,66 + ,66.27 + ,64 + ,63.67 + ,63.73 + ,63.33 + ,63.53 + ,63.53 + ,62.87 + ,59.53 + ,62.8 + ,60.8 + ,59.8 + ,56.67 + ,57.67 + ,58.4 + ,55.47 + ,56.2 + ,71.53 + ,68.67 + ,65.67 + ,66.73 + ,67.33 + ,66.73 + ,66.87 + ,65.8 + ,64.73 + ,65.47 + ,63.6 + ,64.07 + ,64.67 + ,63.73 + ,62.53 + ,61.93 + ,62.67 + ,62.8 + ,61.33 + ,62.6 + ,59.13 + ,61.27 + ,59.47 + ,57.87 + ,59.73 + ,61.4 + ,58.8 + ,58.33 + ,57.47 + ,57.13 + ,55 + ,51.53 + ,72.73 + ,73 + ,70.8 + ,70.07 + ,71.67 + ,71.07 + ,70.67 + ,70.73 + ,70.73 + ,68.6 + ,69.6 + ,66.47 + ,67.07 + ,68.67 + ,66.93 + ,65.93 + ,68.87 + ,66.53 + ,65.8 + ,66.6 + ,66 + ,65 + ,66.8 + ,65.6 + ,66 + ,65.67 + ,64.67 + ,65.07 + ,64.67 + ,65.07 + ,65.2 + ,64.87 + ,63.47 + ,62.6 + ,64.07 + ,63.73 + ,64.67 + ,61.6 + ,61.6 + ,60.47 + ,61.27 + ,63 + ,61.47 + ,60.87 + ,61.67 + ,62.87 + ,62.4 + ,59.73 + ,60.13 + ,58.8 + ,59.6 + ,58.93 + ,60.13 + ,58.2 + ,58.27 + ,58.27 + ,55.07 + ,53.87 + ,52.33 + ,47.2 + ,37.93 + ,72.73 + ,70.07 + ,70.67 + ,72.07 + ,68.8 + ,68.8 + ,67.47 + ,66.73 + ,66.53 + ,66 + ,67.6 + ,66 + ,66 + ,66.53 + ,65.8 + ,64.27 + ,64.67 + ,64.6 + ,64.13 + ,65.47 + ,62.93 + ,63.53 + ,62.13 + ,63.87 + ,64.67 + ,63.33 + ,63.13 + ,62.8 + ,62.4 + ,62.4 + ,62.6 + ,61.47 + ,62.2 + ,63 + ,61.8 + ,59.73 + ,60.33 + ,60.13 + ,59.53 + ,59 + ,55.93 + ,41.87 + ,36.33 + ,71.67 + ,71.47 + ,70.47 + ,69.53 + ,70.73 + ,69.93 + ,68.73 + ,67.53) + ,dim=c(1 + ,189) + ,dimnames=list(c('pment') + ,1:189)) > y <- array(NA,dim=c(1,189),dimnames=list(c('pment'),1:189)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par2 = '1' > par1 = '10' > #'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: > par2 <- as.numeric(par2) > x <- as.numeric(y[par2,]) > postscript(file="/var/wessaorg/rcomp/tmp/1y9z41320705972.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > par1 <- as.numeric(par1) > myhist<-hist(x, breaks=par1, col=2) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2kxb91320705972.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > qqline(x, col=2) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3ffjn1320705972.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(density(x)) > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Descriptive Statistics',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,mean(x)) > a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','formula','click to see the formula')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'standard deviation',header=TRUE) > a<-table.element(a,sd(x)) > a<-table.element(a,hyperlink('http://www.xycoon.com/unbiased1.htm','formula','click to see the formula')) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/4ynag1320705972.tab") > > try(system("convert tmp/1y9z41320705972.ps tmp/1y9z41320705972.png",intern=TRUE)) character(0) > try(system("convert tmp/2kxb91320705972.ps tmp/2kxb91320705972.png",intern=TRUE)) character(0) > try(system("convert tmp/3ffjn1320705972.ps tmp/3ffjn1320705972.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.887 0.156 1.044