Dear members
I have the following date: 12-Dec-15 and would like to convert it to numerical so I can great a dummy variable equal to one if the data is less than 12-Dec-15 and zero otherwise.
What’s the right code to convert the data so I can use to create the dummy variable?
thanks for your help
Related Posts with How to convert a date into numerical for subtraction
interrupted time series analysis with non-equivalent dependent variablesHello, I'm familiar with Stata's arima and itsa commands for estimating interrupted time series ana…
Simultaneous Equation Models in SVYHi everyone! I am trying to do survey analysis, but I cannot find a way to perform three-stage leas…
How to create a string variable whose unique value is the name of a file in the directory and add new observations interactivelyDear all, I am working with string data and I would like to import multiple Excel files and append …
Loop for determining where a respondent abandoned the surveyHello, I am working with survey data and I want to be able to analyze at which points in the survey…
Trouble Reshaping panel data from Wide to long.Hi there, I am using Stata 15.1 on windows 10 for a dissertation project and am in the process of c…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert a date into numerical for subtraction
Post a Comment