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
Different output after using xtreg, fe using factor variables instead ofDear Statalist, I am currently doing research on the effect of water use restrictions on residentia…
Ipolate on panel data creating observations rather than filling them inHi there! I have a panel dataset taken from the Mexican Population Census where the observations are…
Known groups in LCAHi all, I am still quite new to this so maybe it is just a simple problem. I am using Stata 16 at a…
Creating new variables depending on existing onesHi everyone. I have four variables in the dataset: year, groupID, personID and X. I would like to cr…
Panel data:Hello, I am doing a panel data analysis with GINI index as the dependent Variable and Remittance as …
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