MAdata {MapGAM} | R Documentation |
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)
Format
A data frame with 1000 observations on the following 6 variables.
Case
0 for controls, 1 for cases.
Xcoord
projected X coordinate.
Ycoord
projected Y coordinate.
Smoking
0 for nonsmokers, 1 for smokers.
Mercury
continuous variable for mercury exposure.
Selenium
continuous variable for selenium exposure.
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).
Source
Simulated data provided by package authors
Examples
data(MAdata)
summary(MAdata)
attach(MAdata)
# map participants, cases in red and controls in black
plot(Xcoord,Ycoord,col=Case+1)