Hello!
I hope someone here is able to help me out with this matter. I have a research where I am trying to look at the effect of size and the month of january on stock returns.
Currently I am trying to organize the data. I try to summarize it using if commands like this:
summarize if size ==1 & month = Jan.
However, when entering it does not seem to register "Jan" as an actual month. Even though I have a variable called month, which has the data for which month belongs to that specific value.
I tried turing the months into numbers, but then again a command like '1 = jan" doesn't work because you run into the same problem of stata not realising what "Jan" is supposed to be.
Kind regards,
Billy Radboud
Related Posts with Quick question: how to let stata read months?
How to rank firms into decilesHello, I try to measure investment efficiency in this paper "How does financial reporting quality r…
Destringed variables representing subsectors (Variable representing whole sector is D). Cannot plot even I converted to numericDear all, I destringed (converted from string to numeric) a set of variables that described subsect…
2sls regression with interaction between endogenous and exogenous variablesI am having an endogenous variable X1 and an exogenous variable X2 and instruments Z1 and Z2 for my …
Regular expression in StataDear Stata users, Regular expression is used frequently nowadays. Stata's help file on regular expr…
Brant test for parallel regression lines dependent on coding of dependent variableI estimate an ordinal logistic regression model and use 'oparallel' to get the p-value from a Brant …
Subscribe to:
Post Comments (Atom)
0 Response to Quick question: how to let stata read months?
Post a Comment