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
Advice on coding for crude and standardised incidence rate estimationI recently completed analysis of a large dataset to generate age and sex stratified incident counts …
2SLS InterpretationHello everyone, I hope you are all well, I have an analysis based on the convergence growth model …
Twang - psHi, I am working with Twang. I am running the specification suggested by RAND tutorials for binary t…
IVProbit postestimation testI am using MLE to estimate my IVProbit, which involves estimating a simultaneous system of equations…
nlsur with linear functions is giving me different results from sureg, Is this a bug?Good afternoon, When I estimate linear seemingly unrelated regression through the nlsur, I expect t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating spine variables for regression
Post a Comment