I am hoping someone can help me.
I have a time variable coded as months from Jan 2016 to Feb 2020
I am hoping to fit some splines to my regression model to analyse trends over time
For this I need two variables, one is "before" and one is "after", which reflect time before and after the implementation of a policy
I need "before" to run as 0, 1, 2,3,4 etc upto March 2019, and "after" to run 0,1,2,3,4,5 from April 2019
Does anyone know some quick code which can help with this?
Thank you
Related Posts with Creating spine variables for regression
Specify twoway graph attributes with variableHi all, I'm trying to figure out a quicker way to create readable charts. Often when I plot scatter…
Loop Append Multiple Waves of dtaHello everyone, I know that this has been addressed and answered multiple times, however I am very …
reshaping in stataI have some data in which I have for each row the data by center, and I need to have them by student…
Single effect estimate for a categorical interaction term?!hi all! I'm working on a project looking at the effect of an intervention on a continuous outcome v…
Problems with dates (type mismatch r(109))Dear community, I am new to stata and have a problem I cannot solve. I have dates which are in the f…
Subscribe to:
Post Comments (Atom)
0 Response to Creating spine variables for regression
Post a Comment