Hi, I was hoping that someone at Statalist could help me with this. I’m trying to use multilevel logistic regression with complex survey data. I’m using the Health and Retirement (HRS) study to examine longitudinal data but I’m unsure whether I’m specifying the complex survey design correctly. Below is a description of the variables and how I’m using the svyset and melogit commands.
Stratum: raestrat
PSU: raehsamp (which indicates whether or not it is a face to face interview or telephone interview, waves alternate between telephone and face to face interviews)
Individual unique identifier: hhidpn
Sample weight for individual: wt
According to the HRS documentation, analysis of cross-sectional data should be specified as follows
svyset raehsamp [pweight=wt], strata (raestrat)
Since I’m examining longitudinal data I’m specifying the model this way
svyset raehsamp, strata(raestrat)
svy: melogit hypertension c.age##i.race || hhidpn:, pweight(wt)
The above specification seems to work but I’m unsure if it is correct
Alternatively, I’ve read that the model should be specified as follows, but I’ve never been able to get this to work
svyset raehsamp, strata(raestrat) || hhidpn, weight(wt)
svy: melogit hypertension c.age##i.race || raehsamp: || hhidpn:
Any help with this would be appreciated.
Thank you,
Brandon
Related Posts with Multilevel models with complex survey design
Ttest or ranksum approach for panel dataHi there, I was hoping you could help. I would like to compare the means between 2 samples for pane…
building a categorial variable based on confidence intervallsDear all, I try to part a continous variable in categories using the 50% CI for age groups. Litert…
building a categorial variable based on confidence intervallsDear all, I try to part a continous variable in categories using the 50% CI. Literture ref: "The a…
How to generate a variable with with fixed correlations to an existing variable which already has a uniform distributionHi, I have generate a variable which I have called X, it has a uniform distribution like this: gen x…
repeating random sample and averaging the resultsHi all, I'm trying to do an analysis of covariance (ANCOVA) for a sample of all non-financial firms…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel models with complex survey design
Post a Comment