Dear,
Greetings. I like to calculate mean of each quantile on each date and take the output into a format like excel because I need to process data further. I have used the following code
by mdate , sort : tabstat TotalReturnperShareasofMon , statistics( mean ) by(quant)
to get mean of each quantile on each date where mdate = monthly date, TotalReturnperShareasofMon is the variables which is to be averaged for each quant group. When I use the above command the output is generated in Results window and output is too large that it cannot be seen or handled efficiently. I shared a screenshot of my data in attachment. I would like to know what is the efficient way to calculate mean of each quantile on each date and get output in tabular format like:
mdate quant mean
Thank you very much! Array
Related Posts with Calculate mean of each quantile/decile and get output in excel format
Reshape long then wide: use variable labels as new variable's (j) values, and with missing valuesHi All, I'm trying to reshape a dataset, and I'm having two problems that I can't solve. What I'm …
too many variables, tabulateHi there, I have some troubles with the command tabulate. My Goal is to create a table in Stata, ju…
table issue againHey there, Having solved my last issue leads me directly to the next one.. My goal is to reshape th…
Conditioning on wide variablesHello, I created a wide dataset where 'm201509' to 'm201512' are binary variables indicating that t…
Adding too many variables to a regression modelAm I correct in thinking adding too many variables to a regression model can increase the likelihood…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate mean of each quantile/decile and get output in excel format
Post a Comment