[Pomp-commits] r201 - in pkg: data man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jan 28 12:58:03 CET 2010


Author: kingaa
Date: 2010-01-28 12:58:02 +0100 (Thu, 28 Jan 2010)
New Revision: 201

Added:
   pkg/data/LondonYorke.rda
   pkg/man/LondonYorke.Rd
Log:
- add the data set of London & Yorke


Added: pkg/data/LondonYorke.rda
===================================================================
(Binary files differ)


Property changes on: pkg/data/LondonYorke.rda
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: pkg/man/LondonYorke.Rd
===================================================================
--- pkg/man/LondonYorke.Rd	                        (rev 0)
+++ pkg/man/LondonYorke.Rd	2010-01-28 11:58:02 UTC (rev 201)
@@ -0,0 +1,22 @@
+\name{LondonYorke}
+\alias{LondonYorke}
+\docType{data}
+\title{Reported cases of chickenpox, measles, and mumps from Baltimore and New York, 1928--1972}
+\description{
+  \code{LondonYorke} is a data-frame containing the monthly number of reported cases of three childhood diseases from two American cities in the mid-20th century.
+}
+\usage{data(LondonYorke)}
+\examples{
+data(LondonYorke)
+
+plot(cases~time,data=LondonYorke,subset=disease=="measles",type='n',main="measles",bty='l')
+lines(cases~time,data=LondonYorke,subset=disease=="measles"&town=="Baltimore",col="red")
+lines(cases~time,data=LondonYorke,subset=disease=="measles"&town=="New York",col="blue")
+legend("topright",legend=c("Baltimore","New York"),lty=1,col=c("red","blue"),bty='n')
+
+plot(cases~time,data=LondonYorke,subset=disease=="chickenpox"&town=="New York",type='l',col="blue",main="chickenpox, New York",bty='l')
+
+plot(cases~time,data=LondonYorke,subset=disease=="mumps"&town=="New York",type='l',col="blue",main="mumps, New York",bty='l')
+}
+\seealso{\code{\link{pomp-class}} and the vignettes}
+\keyword{datasets}



More information about the pomp-commits mailing list