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
Weighting data with IPW and mlogitDear all, I intend to manually calculate inverse probability weights (IPW) in order to use them in …
gaps in paneldata - tsfill and _n-1Dear all, for my master's thesis I am running a panelanalysis. I used the reshape-command to transf…
Computing st. deviations per yearHi all, For the firms in my sample, I need to calculate the volatility of earnings. However, I keep…
Malformed notes section with 'outreg2' tex output (caused by commas)I am using 'outreg2' to make latex outputs of several regressions. I want to add a lengthy note at t…
Monte Carlo Simulation with IV 2SLSHi, I'm working on a Monte Carlo simulation with an endogenous x, so that I need to do 2SLS in my l…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel models with complex survey design
Post a Comment