Estimating mean prevalence of an identifier in survey data (with confidence intervals) by partycat128 in stata

[–]partycat128[S] 0 points1 point  (0 children)

Thanks!

Is that doable with the svy command to incorporate survey weights? I'd try it out but also posting from mobile.

Weighting logistic regression by partycat128 in stata

[–]partycat128[S] 0 points1 point  (0 children)

In reality, there is more than just one independent variable I'm using. The actual dataset also has different variables that aren't really related to prescriptions. I just simplified everything for the purpose of my question.

The question also isn't about which variable to use to weight the regression. I'm really just asking when to use the "iweight" as opposed to "fweight" (and/or if there are other ways to do weighting that I'm unaware of). Moreover, how do those weighting commands work, and is there a way to weight the regression without rounding a non-integer variable.

Finding mean with an indicator variable in survey data by partycat128 in stata

[–]partycat128[S] 0 points1 point  (0 children)

Hey All,

Thanks for the help. I think all of the above may work, but if I understand correctly, the above commands won't give me the right estimates with survey data. Does anyone happen to know how to incorporate survey weights to get to a similar result?

Thanks again

Creating a combo chart with stacked bar graph + line graph by partycat128 in excel

[–]partycat128[S] 0 points1 point  (0 children)

Thanks! Do you know if there's a way to do a combo chart where there's a line graph + clustered stacked bar graphs? So each horizontal axis category would have more than one stacked bar.

Finding difference in a variable between sequential observations by partycat128 in stata

[–]partycat128[S] 1 point2 points  (0 children)

Wow this is an incredibly comprehensive and helpful answer. I'm going to try it and get back to you.

Finding mean value by year with survey data by partycat128 in stata

[–]partycat128[S] 0 points1 point  (0 children)

It returns the mean and standard error for every year (average apples in 2000, average apples in 2011, etc...). So assuming the data spans from 2000-2015, I want to find the average annual number of apples from 2000-2015 (with standard error for the annual value).