Learn R Programming

MapGAM (version 0.6-2)

MAdata: Synthetic Case-Control Data for Massachusetts

Description

90 cases and 910 controls with random smoking covarate values and random geolocations within Massachusetts, geocoded on a Lambert projection (in meters). MAmap is a map of Massachusetts using the same projection.

Usage

data(MAdata)

Arguments

source

2010 ISEE/ISES GamMAP workshop: http://www.cireeh.org/pmwiki.php/Main/Gam-mapWorkshop

http://www.busrp.org/projects/project2.html

Details

Lambert conformal conic projection for the State of Massachusetts, using standard parallels 41.71666667 and 42.68333333. The latitude of origin is 41.0, the central meridian is -71.5, and the projection units are meters (False Easting: 200000 m; False Northing: 750000 m).

Examples

Run this code
data(MAdata)
summary(MAdata)
attach(MAdata)
# map participants, cases in red and controls in black
plot(Xcoord,Ycoord,col=Case+1)

Run the code above in your browser using DataLab