请选择 进入手机版 | 继续访问电脑版
楼主: zongtaoliu2054
3487 4

[问答] sas code 如何转换季度数据为月度数据 [推广有奖]

  • 2关注
  • 0粉丝

大专生

28%

还不是VIP/贵宾

-

威望
0
论坛币
987 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
481 点
帖子
21
精华
0
在线时间
69 小时
注册时间
2011-4-3
最后登录
2022-3-16

8论坛币
中国证监会上给的财务数据库是季度的,我需要每一个月的数据。比如在我的EXCLE中,公司firm 10, 提供了199512月的TA,但是我要199511和199510,我希望是199511和199510没有数据的等于有数据的199512. 同样,199601到199605没有数据,我希望等于有数据的199606. 199701到199705没有数据,我希望等于199706的数据。
请问哪位大侠知道怎么在SAS中处理吗? renda.xlsx (311.16 KB)




关键词:季度数据 月度数据 code ODE COD 中国证监会 数据库 财务 如何
jessnet 发表于 2014-10-8 08:26:44 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

我用EXCEL 解决了。但是不知道用SAS如何解决。

使用道具

zongtaoliu2054 发表于 2014-10-9 08:01
我用EXCEL 解决了。但是不知道用SAS如何解决。
遇到同样的问题,想知道您后来问题解决了没有?如何解决?

使用道具

chuyu96 发表于 2021-7-31 09:30:24 |显示全部楼层 |坛友微信交流群
可以使用proc expand:
The EXPAND procedure converts time series from one sampling interval or frequency to another and interpolates missing values in time series. A wide array of data transformations is also supported. Using PROC EXPAND, you can collapse time series data from higher frequency intervals to lower frequency intervals, or expand data from lower frequency intervals to higher frequency intervals. For example, quarterly values can be aggregated to produce an annual series, or quarterly estimates can be interpolated from an annual series.

详见:https://support.sas.com/document ... _expand_sect001.htm
How do I create  time series variables using proc expand? | SAS FAQ (ucla.edu) 之
https://stats.idre.ucla.edu/sas/faq/how-do-i-create-time-series-variables-using-proc-expand/

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 05:40