| 所在主题: | |
| 文件名: portfood.rar | |
| 资料下载链接地址: https://bbs.pinggu.org/a-1096417.html | |
本附件包括:
|
|
| 附件大小: | |
|
[backcolor=rgba(255, 255, 255, 0.917969)]Hi all,
[backcolor=rgba(255, 255, 255, 0.917969)]I am doing the final Project now and have a question regarding the "tabulate" command in Stata. In my data set there are three variables that will be used to generate a particular table - [backcolor=rgba(255, 255, 255, 0.917969)]one variable that is the company name (var name - comnam), [backcolor=rgba(255, 255, 255, 0.917969)]one variable that is the monthly date (var name - datem), and [backcolor=rgba(255, 255, 255, 0.917969)]one variable that is the monthly return of the company by datem (var name - ret). [backcolor=rgba(255, 255, 255, 0.917969)]I want to make a two-way table in Stata to observe these three variables, in which Each row displays returns of different companies on a specific day and Each column displays returns of the same company in all dates. The table below is an example I made in EXCEL. [backcolor=rgba(255, 255, 255, 0.917969)] ![]() I found out that I could use "tabulate" (tab for short) to generate a table similar to this but the table I get only displays frequencies. I tried to use the "sum" option available in "tab" command but I could not manage to display the value (which is the return). [backcolor=rgba(255, 255, 255, 0.917969)]May I ask how to code in order to generate such table? [backcolor=rgba(255, 255, 255, 0.917969)]Thank you! P.S. My professor refers me to a command called "tabstat" but I still could not get the table I want because there is only one variable "prc" including prices of all companies. When you are listing such as "list datem prc", they will show up as such that first all prices of company 1 by date and then all prices of company 2 by date. P.P.S. I have attached the dta file in the attachment for your convenience. Again thank you very much for your time and patience! : ) |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明