Hello there,
I am trying to calculate the prevalence rate of medication use in a series of cross-sectional surveys that have been merged. The variable for prescription use is binary, so I used the "mean" function to calculate the prevalence. However, I want to calculate the percent change between 2011 & 2003. I can do it using the "di" command, however this doesn't produce a confidence interval (and I am unsure if this is the right command to get the percent change using survey data). I know I can use lincom to get the CI of the difference between the two years. Any help is appreciated!
Sample:
svy: mean rxuse, over (year)
di [rxuse]2011/[rxuse]2003-1
lincom [rxuse]2011-[rxuse]2003
I am trying to calculate the prevalence rate of medication use in a series of cross-sectional surveys that have been merged. The variable for prescription use is binary, so I used the "mean" function to calculate the prevalence. However, I want to calculate the percent change between 2011 & 2003. I can do it using the "di" command, however this doesn't produce a confidence interval (and I am unsure if this is the right command to get the percent change using survey data). I know I can use lincom to get the CI of the difference between the two years. Any help is appreciated!
Sample:
svy: mean rxuse, over (year)
di [rxuse]2011/[rxuse]2003-1
lincom [rxuse]2011-[rxuse]2003
Comment