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
How can I select a study population matching a published prospective trial?Dear Experts, I have a very large population database of patients who have been treated for localiz…
weighted random effects model with clustered SEHello: I want to estimated a weighted RE model with clustered standard errors. The xtreg does not a…
Estimate store using lincomHi everyone, I hope you are doing great. I am trying to store the results of a lincom to later use …
Graph Scale and Text when using Graph Combine CommandI want to combine graphs, but when I do, the formatting is almost always problematic. If I have thr…
Reformatting a monthly date variableI have a date variable in month-year format that looks like "2012m8". I got to that format using the…
Subscribe to:
Post Comments (Atom)
0 Response to Calculate mean of each quantile/decile and get output in excel format
Post a Comment