Last data update: 2014.03.03

R: Synthetic Case-Control Data for Massachusetts
MAdataR 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

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

http://www.busrp.org/projects/project-2-analyzing-patterns-in-epidemiologic-and-toxicologic-data (Mercury and selenium exposure variables added in December 2013)

Examples

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-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.

> library(MapGAM)
Loading required package: sp
Loading required package: gam
Loading required package: splines
Loading required package: foreach
Loaded gam 1.12

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MapGAM/MAdata.Rd_%03d_medium.png", width=480, height=480)
> ### Name: MAdata
> ### Title: Synthetic Case-Control Data for Massachusetts
> ### Aliases: MAdata
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(MAdata)
> summary(MAdata)
      Case          Xcoord           Ycoord          Smoking     
 Min.   :0.00   Min.   : 35354   Min.   :778430   Min.   :0.000  
 1st Qu.:0.00   1st Qu.:111465   1st Qu.:869089   1st Qu.:0.000  
 Median :0.00   Median :183100   Median :891067   Median :0.000  
 Mean   :0.09   Mean   :175054   Mean   :889081   Mean   :0.177  
 3rd Qu.:0.00   3rd Qu.:236826   3rd Qu.:919684   3rd Qu.:0.000  
 Max.   :1.00   Max.   :327861   Max.   :954253   Max.   :1.000  
    mercury          selenium     
 Min.   :0.1418   Min.   :0.2049  
 1st Qu.:0.7206   1st Qu.:0.8573  
 Median :1.0010   Median :1.1836  
 Mean   :1.1471   Mean   :1.3590  
 3rd Qu.:1.4017   3rd Qu.:1.6844  
 Max.   :5.6298   Max.   :5.8963  
> attach(MAdata)
> # map participants, cases in red and controls in black
> plot(Xcoord,Ycoord,col=Case+1) 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>