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 <- c(80 + ,66 + ,67 + ,65 + ,67 + ,72 + ,80 + ,65 + ,64 + ,60 + ,61 + ,64 + ,61 + ,64 + ,57 + ,67 + ,64 + ,64 + ,66 + ,53 + ,59 + ,55 + ,57 + ,72 + ,62 + ,71 + ,57 + ,62 + ,63 + ,64 + ,65 + ,69 + ,62 + ,62 + ,52 + ,54 + ,68 + ,48 + ,60 + ,50 + ,58 + ,55 + ,54 + ,60 + ,55 + ,74 + ,80 + ,74 + ,65 + ,65 + ,62 + ,60 + ,62 + ,67 + ,60 + ,64 + ,65 + ,62 + ,63 + ,62 + ,68 + ,67 + ,62 + ,67 + ,58 + ,68 + ,58 + ,60 + ,60 + ,55 + ,47 + ,58 + ,54 + ,52 + ,55 + ,51 + ,58 + ,74 + ,74 + ,80 + ,74 + ,68 + ,74 + ,74 + ,65 + ,65 + ,74 + ,74 + ,74 + ,74 + ,65 + ,62 + ,74 + ,58 + ,65 + ,65 + ,65 + ,62 + ,74 + ,65 + ,68 + ,65 + ,62 + ,62 + ,68 + ,68 + ,62 + ,58 + ,62 + ,68 + ,63 + ,58 + ,65 + ,58 + ,62 + ,65 + ,65 + ,65 + ,52 + ,65 + ,62 + ,65 + ,62 + ,45 + ,65 + ,58 + ,62 + ,65 + ,58 + ,58 + ,74 + ,62 + ,65 + ,62 + ,58 + ,55 + ,65 + ,55 + ,68 + ,80 + ,74 + ,62 + ,74 + ,68 + ,65 + ,65 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,58 + ,65 + ,65 + ,58 + ,62 + ,52 + ,68 + ,62 + ,68 + ,58 + ,58 + ,52 + ,58 + ,62 + ,65 + ,58 + ,55 + ,65 + ,58 + ,58 + ,58 + ,65 + ,62 + ,65 + ,58 + ,58 + ,55 + ,68 + ,55 + ,65 + ,62 + ,80 + ,68 + ,65 + ,58 + ,68 + ,68 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,65 + ,80 + ,65 + ,62 + ,65 + ,74 + ,58 + ,62 + ,68 + ,58 + ,65 + ,62 + ,62 + ,62 + ,58 + ,65 + ,52 + ,58 + ,58 + ,52 + ,65 + ,65 + ,58 + ,65 + ,40 + ,62 + ,74 + ,58 + ,58 + ,55 + ,72 + ,62 + ,71 + ,57 + ,62 + ,63 + ,64 + ,65 + ,69 + ,62 + ,62 + ,52 + ,54 + ,68 + ,48 + ,60 + ,50 + ,58 + ,55 + ,54 + ,60 + ,55 + ,74 + ,80 + ,74 + ,65 + ,65 + ,62 + ,60 + ,62 + ,67 + ,60 + ,64 + ,65 + ,62 + ,63 + ,62 + ,68 + ,67 + ,62 + ,67 + ,58 + ,68 + ,58 + ,60 + ,60 + ,55 + ,47 + ,58 + ,54 + ,52 + ,55 + ,51 + ,58 + ,74 + ,74 + ,80 + ,74 + ,68 + ,74 + ,74 + ,65 + ,65 + ,74 + ,74 + ,74 + ,74 + ,65 + ,62 + ,74 + ,58 + ,65 + ,65 + ,65 + ,62 + ,74 + ,65 + ,68 + ,65 + ,62 + ,62 + ,68 + ,68 + ,62 + ,58 + ,62 + ,68 + ,63 + ,58 + ,65 + ,58 + ,62 + ,65 + ,65 + ,65 + ,52 + ,65 + ,62 + ,65 + ,62 + ,45 + ,65 + ,58 + ,62 + ,65 + ,58 + ,58 + ,74 + ,62 + ,65 + ,62 + ,58 + ,55 + ,65 + ,55 + ,68 + ,80 + ,74 + ,62 + ,74 + ,68 + ,65 + ,65 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,58 + ,65 + ,65 + ,58 + ,62 + ,52 + ,68 + ,62 + ,68 + ,58 + ,58 + ,52 + ,58 + ,62 + ,65 + ,58 + ,55 + ,65 + ,58 + ,58 + ,58 + ,65 + ,62 + ,65 + ,58 + ,58 + ,55 + ,68 + ,55 + ,65 + ,62 + ,80 + ,68 + ,65 + ,58 + ,68 + ,68 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,65 + ,80 + ,65 + ,62 + ,65 + ,74 + ,58 + ,62 + ,68 + ,58 + ,65 + ,62 + ,62 + ,62 + ,58 + ,65 + ,52 + ,58 + ,58 + ,52 + ,65 + ,65 + ,58 + ,65 + ,40 + ,62 + ,74 + ,58 + ,58 + ,55 + ,80 + ,66 + ,67 + ,65 + ,67 + ,72 + ,80 + ,65 + ,64 + ,60 + ,61 + ,64 + ,61 + ,64 + ,57 + ,67 + ,64 + ,64 + ,66 + ,53 + ,59 + ,55 + ,57 + ,72 + ,62 + ,71 + ,57 + ,62 + ,63 + ,64 + ,65 + ,69 + ,62 + ,62 + ,52 + ,54 + ,68 + ,48 + ,60 + ,50 + ,58 + ,55 + ,54 + ,60 + ,55 + ,74 + ,80 + ,74 + ,65 + ,65 + ,62 + ,60 + ,62 + ,67 + ,60 + ,64 + ,65 + ,62 + ,63 + ,62 + ,68 + ,67 + ,62 + ,67 + ,58 + ,68 + ,58 + ,60 + ,60 + ,55 + ,47 + ,58 + ,54 + ,52 + ,55 + ,51 + ,58 + ,74 + ,74 + ,80 + ,74 + ,68 + ,74 + ,74 + ,65 + ,65 + ,74 + ,74 + ,74 + ,74 + ,65 + ,62 + ,74 + ,58 + ,65 + ,65 + ,65 + ,62 + ,74 + ,65 + ,68 + ,65 + ,62 + ,62 + ,68 + ,68 + ,62 + ,58 + ,62 + ,68 + ,63 + ,58 + ,65 + ,58 + ,62 + ,65 + ,65 + ,65 + ,52 + ,65 + ,62 + ,65 + ,62 + ,45 + ,65 + ,58 + ,62 + ,65 + ,58 + ,58 + ,74 + ,62 + ,65 + ,62 + ,58 + ,55 + ,65 + ,55 + ,68 + ,80 + ,74 + ,62 + ,74 + ,68 + ,65 + ,65 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,58 + ,65 + ,65 + ,58 + ,62 + ,52 + ,68 + ,62 + ,68 + ,58 + ,58 + ,52 + ,58 + ,62 + ,65 + ,58 + ,55 + ,65 + ,58 + ,58 + ,58 + ,65 + ,62 + ,65 + ,58 + ,58 + ,55 + ,68 + ,55 + ,65 + ,62 + ,80 + ,68 + ,65 + ,58 + ,68 + ,68 + ,68 + ,62 + ,62 + ,68 + ,65 + ,58 + ,65 + ,80 + ,65 + ,62 + ,65 + ,74 + ,58 + ,62 + ,68 + ,58 + ,65 + ,62 + ,62 + ,62 + ,58 + ,65 + ,52 + ,58 + ,58 + ,52 + ,65 + ,65 + ,58 + ,65 + ,40 + ,62 + ,74 + ,58 + ,58 + ,55) > par1 = '10' > xlab = 'Survey Score' > main = 'Maternal IQ' > postscript(file="/var/wessaorg/rcomp/tmp/1ocex1318512350.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, xlab=xlab, main=main) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2cuhl1318512350.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/3p8oj1318512350.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(density(x), xlab=xlab, main=main) > 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,signif(mean(x), 6)) > 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,signif(sd(x), 6)) > 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/4312f1318512350.tab") > > try(system("convert tmp/1ocex1318512350.ps tmp/1ocex1318512350.png",intern=TRUE)) character(0) > try(system("convert tmp/2cuhl1318512350.ps tmp/2cuhl1318512350.png",intern=TRUE)) character(0) > try(system("convert tmp/3p8oj1318512350.ps tmp/3p8oj1318512350.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.034 0.164 1.192