Description Usage Format Details Source References Examples
NHANES_blood_lead_small data after a full matching using the optmatch package
1 |
NHANES_blood_lead_small dataset after a full matching. It consists of 500 instances and the following 12 variables:
COPtreatment, 1 if cotinine level is between 0.563-14.9 ng/ml and 0 otherwise
DMARETHN1 if white, 0 if others
DMPPIRPoverty income ratio
HFE11 if the house is built before 1974, 0 if after 1974
HFE2number of rooms in the house
HFHEDUCReducation level of the reference adult
HSAGEIRage at the time of interview
HSFSIZERsize of the family
HSSEX1 if male, 0 if female
PBPblood lead level
U0placeholder for the hypothesized unmeasured confounder U
matchesmatched set assignment
We perform a full matching on the NHANES_blood_lead_small dataset using the optmatch package. The code for constructing this matched dataset from the original dataset is given in the examples section. We add a column U0 as placeholder for the unmeasurefor confounder U.
NHANES III, the Third US National Health and Nutrition Examination Survey.
D. M. Mannino, R. Albalak, S. D. Grosse, and J. Repace. Second-hand smoke exposureand blood lead levels in U.S. children.Epidemiology, 14:719-727, 2003
A. Gelman. Scaling regression inputs by dividing by two standard deviations.Statisticsin Medicine, 27:2865-2873, 2008.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# To run this example, optmatch must be installed
set.seed(1)
library(optmatch)
data(NHANES_blood_lead_small)
attach(NHANES_blood_lead_small)
# Perform a fullmatch
fm = fullmatch(COP ~. , data = NHANES_blood_lead_small[, 1:9], min.controls = 1/4, max.controls = 4)
NHANES_blood_lead_small_matched = cbind(NHANES_blood_lead_small, matches = fm)
# Add a U0 row
U0 = rep(1, dim(NHANES_blood_lead_small_matched)[1])
NHANES_blood_lead_small_matched = cbind(NHANES_blood_lead_small_matched[,1:9], U0,
NHANES_blood_lead_small_matched[, 10:11])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.