Displaying 1 result from an estimated 1 matches for "sdmvpsu".
2012 Aug 10
1
Direct Method Age-Adjustment to Complex Survey Data
...HS/nhanes/2009-2010/TCHOL_F.xpt" ,
tf ,
mode = "wb"
)
NHANES.0910.TCHOL_F.df <- read.xport( tf )
############# merge them together, keeping only a few columns
##################
DemoKeepVars <- c( "SEQN" , "WTMEC2YR" , "RIDSTATR" , "SDMVPSU" ,
"SDMVSTRA" , "RIDAGEYR" , "RIAGENDR" , "RIDRETH1" )
TCHOLKeepVars <- c( "SEQN" , "LBXTC" )
x <-
merge(
NHANES.0910.demographics.df[ , DemoKeepVars ] ,
NHANES.0910.TCHOL_F.df[ , TCHOLKeepVars ] ,
a...