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
Survival timeDear Sir/Madam: When I try to set my data as survival time using stset command, it returns a message…
Graphing interaction effect on multiple imputed negative binomial modelsHi. I have problems graphing the interaction effect I get after the following "main" commands. gen …
Crossed random effects model-error r(3203)I have been running crossed random effects mixed models and the syntax that has always worked before…
STJM error BLUP calculation failedHello, I am currently trying to run a joint longitudinal survival model using the stjm command. I a…
stjm error, blup calculation failedHello, I am currently trying to run a joint longitudinal survival model using the stjm command. I a…
Subscribe to:
Post Comments (Atom)
0 Response to How to convert a date into numerical for subtraction
Post a Comment