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
Parameter constraints for MLE modelDear forum guests! I need to introduce a range constraint for the sum on parameters in MLE model. T…
Writing paragraphs using putdocx textHi I'm trying to use putdocx to automate a report. When writing long paragraphs, it seems I can't g…
mlogit - coefficent and marginal effects with different singsHi, I am running a multinational logistic regression with the mlogit command. I have noticed that t…
Frequency table for multiple variablesDear all, As a fairly new user of Stata, I would appreciate any suggestions to create a frequency t…
Looking for alternatives to outreg2Dear Statalist, I am trying to do some descriptives and to export the table to a word document. I u…
Subscribe to:
Post Comments (Atom)
0 Response to Creating spine variables for regression
Post a Comment