Dear StataList:
I am wishing to estimate age-adjusted median concentrations and 95% CIs of a laboratory measure across categories of participant characteristics (to use in a descriptive table). I have read that quantile regression estimates medians, but I cannot figure out the post-estimation commands to obtain the age-adjusted median concentrations and accompanying 95% CIs by categories of another variable.
For example, I would like to estimate the age-adjusted median concentration of a laboratory measure across categories of education. I started with the coding:
qreg [lab measure] [age] [age^2] [categorical education] if pop1==1 [pw=wt], vce(robust) /* I am using data with sample weights */
predict median if e(sample), xb
bysort education: centile median if pop1==1
The values I obtained for the age-adjusted median lab measure and 95% CI across categories of education are vastly different than the crude medians. I suspect my post-estimation commands are incorrect. I also wonder if education should be included in the quantile regression model, or just age and age^2.
I am grateful for any coding advice you can provide.
Sincerely,
Kristen Upson
Related Posts with Estimating adjusted medians and 95% CI using quantile regression
Allocating particular values based on an identifierHello! I am fairly new to stata, and I have spent quite some time on this website to find a solutio…
fixed effect or random effect, comparatively small sample(N= 404 / T=2), short panelHi all, I am trying to do the analysis on studying diversity index influencing farmer's productivity…
How to add fixed regressors in NARDL modelHi My questions are on Nonlinear and Asymmetric Autoregressive Distribution Lag Model (NARDL) 1. Ho…
sample selection under many restrictionsHi, I have a (panel) dataset that contains observations with the following variables: company (abou…
NAs and missing valuesI am a stata novice, using stata for the first time in life. I have multiple variables as strings (…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating adjusted medians and 95% CI using quantile regression
Post a Comment