Hi all,
I am currently writing my master thesis and I have the following problem. I made a dummy variable that is equal to one if the share price of a company is lower than 5 dollars during a specific month. I want to make the dummy variable 1 for the whole year for a specific company when the dummy equals one for a specific month during the given year. Example: dummy equals 1 during Jan 2000 for a specific company, then I want the dummy to be equal to one for the whole year of 2000.
What is the best way to approach this?
Kind regards,
Rob Winters
Related Posts with Dummy variable from monthly to yearly
Finding the response rate to questionnaireDear Statalist, I have a survey data about the respondents' beverage intake information across mult…
Reshape long to wide errorHello stateliest, Im having trouble trying to reshape my data set from long-wide. My code can be fou…
Calculate mean when values are missingI need to create a variable that is the mean of the observations from three other variables. I did t…
How do I drop dates => than 01.may 2013?When I write: drop if=>01may2013 stata replices "01may2013 invalid name" …
Insufficient observations for fixed effects regression using xtsetHi, My Stata version is 13.1. I am trying some small scale fixed effects regression to test if my ma…
Subscribe to:
Post Comments (Atom)
0 Response to Dummy variable from monthly to yearly
Post a Comment