全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3137 2
2008-07-26
我觉得问题比较菜鸟,但是我还是不会弄.是这样的:
我需要把IBES里面的每年10月份做的对于当年年末的盈余预测的数据挑出来.就是例如:1996年每个月都对1996年12月的盈利有预测,而我只需要1996年10月对1996年12月的盈利预测的值.于是我要用SAS来完成这个任务.

我自己研究了好几天,就只弄懂了一点皮毛,又没有足够的时间来让我自学SAS, 所以只好在这里问问牛人,有没有可以帮我的.我觉得intck 和intnx两个命令应该可以完成这个任务. 但是具体要怎么用我,我试了半天还是不行.

months=intck('month',ForecastEndDate,date2);                 注:ForecastEndDate是一个变量,即每年的12月
date2=intnx('month',ForecastEndDate,-3);
If months=-2 then output;
run;

嗯,不知道有没有人看得懂? 唉,反正先谢谢大家..


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2008-7-26 10:22:00
The following is the contents of the I/B/E/S Detail History (with Actuals)

Variable Name  Type    Variable Label
     ANALYS    Num     Analyst Code
     BROKER    Num     Broker Code
     CNAME     Char    Company Name
     CURRFL    Char    Currency Flag (Estimate Level)
     CUSIP     Char    CUSIP/SEDOL
     ESTDATX   Char    Estimate Date (Original IBES Format)
     ESTDATS   Num     Estimate Date (SAS Format)
     FPEDATX   Char    Forecast Period End Date (Original IBES Format)
     FPEDATS   Num     Forecast Period End Date (SAS Format)
     FPI       Char    Forecast Period Indicator
     MEASURE   Char    Data Type Indicator (e.g., EPS, CPS, etc.)
     OFTIC     Char    Official Ticker (Exchange Ticker Symbol)
     PDF       Char    Primary/Diluted Flag (Estimate Level)
     REPDATS   Num     Report Date (Actual Value), SAS Format

If you only need October of the year, you can use month(estdats) = 10 as condition to keep the observations you want.

You can use the WRDS webpage query to get all the data and run on your computer. It would be a little bit easy. There are sample code you can refer to in following link:
http://wrds.wharton.upenn.edu/cgi-bin/samples.cgi?dataset=ibes&type=sas

Good luck on your research !





二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-6-18 15:48:32
各位大侠,如何获得IBES数据库?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群