Hey y'all.
I've been stuck on creating a dummy variable called summer that's 1 when the integer ends in 4, 5, 6, 7, 8, 9 and zero otherwise.
I have already converted my integer date values to string, but I don't know if there exists a function(like .endswith or something for Python) that can do precisely what I need.
Let me know what you guys think.
Related Posts with Help with creating a dummy variable that depends on the last integer of a date
Truncated Weibull Distribution ?Dear Experts, I kindly ask if one of you have any idea on how I could fit a zero-truncated Weibull …
EVENTDD error message with cross section dataI'm working with BRFSS data and its a cross section data. Need to create event study analysis and I …
Tools for creating HTML documents with StataDoes anyone have preferred options for creating HTML documents that incorporate Stata code? I've hea…
Indicate loss of observations by variableDear Statalist Community, I am looking for a command that tells me how many observations are lost w…
How to create a graph like this in STATA?I am conducting an event study where I want to graph out cumulative abnormal returns surrounding the…
Subscribe to:
Post Comments (Atom)
0 Response to Help with creating a dummy variable that depends on the last integer of a date
Post a Comment