R version 2.8.0 (2008-10-20) Copyright (C) 2008 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 <- c(610,544,471.4,696.675,707.9,524.075,471.75,526.625,390.2,451.5,681.875,546.5,488.5,488.5,613.125,439,439,460.625,657.125,570.625,804.575,443,745.775,667.125,590.55,683.125,818.26,679.7,679.7,535.75,579,700.75,567.5,531.25,781.25,572.5,591.5,548.75,744,634.25,634.25,313.25,674.25,769.55,758.25,488.775,690.45,559.5,687.1,796.5,756.65,794.5,0,387.5,683,762.25,742,731.5,643,573.44,574.751,440.025,350.75,562.75,642.251,411,646,558.525,647.15,591,797,642.25,726.275,652.75,678.75,602.25,689.775,393,580.525,462.25,725.65,501,675,691,613.496,688.25,518.8,386.275,491.35,269.5,379,375.25,337.5,296,375,399.525,336,483.5,370.25,625.5,736.75,496.05,740.5,690.525,568.75,341.1,519.75,408.75,278.35,217,266,319.025,454.75,378.3,509.575,453.75,252,187.525,401.5,403.75) > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > library(MASS) > (f<-fitdistr(x, 'poisson')) lambda 549.446650 ( 2.139795) There were 50 or more warnings (use warnings() to see the first 50) > xlab <- paste('Poisson(lambda=',round(f$estimate[[1]],2)) > xlab <- paste(xlab,')') > postscript(file="/var/www/html/freestat/rcomp/tmp/1gk3m1271419117.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqplot(qpois(ppoints(x), lambda=f$estimate[[1]]), x, main='QQ plot (Poisson)', xlab=xlab ) > grid() > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Parameter',1,TRUE) > a<-table.element(a,'Estimated Value',1,TRUE) > a<-table.element(a,'Standard Deviation',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'lambda',header=TRUE) > a<-table.element(a,f$estimate[1]) > a<-table.element(a,f$sd[1]) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/freestat/rcomp/tmp/2232a1271419117.tab") > > try(system("convert tmp/1gk3m1271419117.ps tmp/1gk3m1271419117.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.676 0.294 0.750