Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: propensity score analysis time-varying treatment


From   CJ Wilson <cwil111111@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: propensity score analysis time-varying treatment
Date   Sat, 10 Nov 2012 12:23:03 -0800

Hi all, I posted the below message awhile ago but didn't get any responses. Any help at all would be much appreciated. thanks!

Dear Statalist,
 
I’m trying to determine the correct Stata code to conduct a propensity score stratification analysis in a longitudinal dataset. My variable for the treatment is time-varying, so some patients receive treatment at certain time points but not others. I haven’t been successful at finding any examples of Stata code online that are for longitudinal propensity scores. 
Here is my proposed approach:
1. Estimate a random-intercept logistic regression model for the propensity of treatment using xtlogit

2. Calculate the propensity score as follows:
predict prop_score
gen prop_score2 = exp(prop_score)/(1+exp(prop_score)) 
xtile ps_quintiles = prop_score2, nq(5)
tabulate ps_quintiles, ge(q)

3. Determine whether there is a treatment by propensity interaction

Here are a couple areas where I'm struggling: 
4. I would like to determine the standardized difference in means to assess whether balance is achieved. Does anyone have any sample Stata code relating to this? 
5. Does anyone have sample code to determine the average treatment effect among the untreated?
Any advice would be much appreciated.
Thank you!!
Carrie 
 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index