楼主: linlin0924
3187 2

[求助]我要怎么编这个程序? [推广有奖]

  • 0关注
  • 0粉丝

学前班

40%

还不是VIP/贵宾

-

威望
0
论坛币
1488 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
600 点
帖子
1
精华
0
在线时间
0 小时
注册时间
2007-10-15
最后登录
2013-8-16

楼主
linlin0924 发表于 2008-7-26 07:41:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我觉得问题比较菜鸟,但是我还是不会弄.是这样的:
我需要把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;

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


二维码

扫码加我 拉你入群

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

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

关键词:Forecast forecas months output month 程序

沙发
SignPingGu 发表于 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 !





藤椅
xyd2003 发表于 2009-6-18 15:48:32
各位大侠,如何获得IBES数据库?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 02:53