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
Suppress legend on twoway graphI'm generating a graph with lines of best fit and it works fine but when I try and suppress the lege…
Writing results to file when model fails to convergeHello list users. I am hoping someone has tired to do something all the lines of the following. I am…
Manipulating string -- Delete everything after space Code: +--------------------------------------------------------+ | sex age …
Omitted variable due to CollinearityHi guys, I am trying to find which coefficient beta 1 or 2 has a greater effect on child mortality.…
Invalid SyntaxWe wanted to create an do-file for a coefficient-estimation for the previos 36 months for each fund …
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