Hi,
I have a enormous data set and I would like to create ten groups (country) with an equal number of observations based on the level of accruals (acc). Next, I would like to tabulate the average (i.e., mean) stock returns in year t+1 (cfop1) for each of the groups. Does anyone know how Stata can help me with this?
Thank you in advance!
Related Posts with How to create groups with an equal number of observations?
Find the the variable with highest value and mark this as 1, while the other variables are marked 0Hello all, I have a data set that looks like this: Code: input int year float(A B C D E) 1950 .3…
Intended Nickell bias to test the usefullness of different fixed effectsHi all, I am working on panel data and I assume that at least one of my explanatory variables is en…
Generate new variable(s) conditional on different variables taking a specific valueDears, I would generate new variables every time that corr_tof* takes the same value as tof. Here b…
How to mix the obs of two variables?Hello everyone, This is my database. Each org_uuid is matched with a specific investor_uuid. This a…
Defining duplicates through extracting day from date-time variableHi all, I have scoured statalist for some time but have not found the answer to this question. Fir…
Subscribe to:
Post Comments (Atom)
0 Response to How to create groups with an equal number of observations?
Post a Comment