Hi all, I'm conducting a diff-in-diff analysis and I'm using margins to test the parallel trends assumption. My outcome variable is "medcost" (0,1) and I've included an interaction term for year (2009-2012, 2016-2019) and treatment (0,1). Here is my code: logit medcost i.year##i.treat2 if _age65yr==1 & mcaid_elig==1 & coverage==0 [pweight=_llcpwt], cluster(_state) allbaselevels
The output omits 2009 and 2010 and uses 2011 as the base level.
Thank you in advance for your help and advice!
Related Posts with interaction terms missing in output--please help!
categorize a variable if certain words are found in it from a big listHi everyone, I want to categorize a variable based on a list that I have maintained. This list is c…
How to create a identifiers in Stata?I have around 40,000 obs in my dataset and I wish to club 1-10 obs as code 1, 11-20 as code 2.. so o…
Difference-in-Difference with continuous variables and fixed effectsDear Stata friends I try to run a difference-in-difference regression with a continuous treatment (…
How to make a binary outcome variable of 3 other variablesHi all, My outcome variable is Entrepreneur =Yes=1 and Entrepreneur = No=wageworker=0 I'm using GEM…
discrete-time survival analysis (xtcloglog)Hi everyone, I am running a discrete-time survival analysis about firm survival on an unbalanced pan…
Subscribe to:
Post Comments (Atom)
0 Response to interaction terms missing in output--please help!
Post a Comment