Hi All,
I am doing an analysis using National Inpatient Sample which uses a complex survey design and provides weights to project national estimates. My unweighted study sample is about 1000 and weighted is about 5000. Recommendations are to use “svy” commands while working on survey data. My questions are-
1.) While performing a logistic regression analysis, I was told that I can do it 2 ways:
a.) Using “svy: logit dep(var) indep(var), or” command. If I do this, the number of observations remain 1000 and population is 5000.
b.) Expanding the dataset using “expand weight” command and then running “logit dep(var) indep(var), or” on the expanded sample. Here the number of observations are 5000.
They both make sense and I have tried using both but they have slightly different results in terms of p values.2.) I can’t calculate “median(IQR)” using “svy” commands. So what’s the alternative for measuring non-parametric continuous variables in such samples. The way I did it- expanded the sample using weights and then ran the command “sum variable, d” on 5000 patients. Is it appropriate? If I don’t expand the weights, my sample size remains 1000.
3.) What is the correct method to determine p values of trends in the categorical variables in the survey sample (for example- % of males who were admitted with myocardial infarction in last 10 years) and continuous variables (length of stay over the years). The recommended official command to determine p-value of trends in categorical variable is- “nptrend”. For continuous variables, linear regression is suggested. Agina, I am not sure how to take into account the survey design while doing this, so I am running these commands after expanding the dataset. Is there a more appropriate way?
thank you in advance.
Related Posts with Questions regarding statistical methods in a survey sample
What happen if we increase the tolerance and maximum number of iterations?When running STATA for panel data (especially for did_imputation),I was suggested by the code someti…
How to do Mediation Analyses to SubsamplesHi Statalist Members, I am using the following code to run some mediation analyses (single mediator…
Keep only children and disregard adult children which start their own familyHello STATALIST community, I am a desperate student at the University of Konstanz in Germany and I …
Reducing a multi-level model due to memory considerationsI was attempting to run a multi-level exponential survival model (-mestreg-), but it failed with a s…
using a loop to remove special characters and destring a variablemy data are a five point likert scale with 21 questions. The answers were recorded as string variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Questions regarding statistical methods in a survey sample
Post a Comment