楼主: zongtaoliu2054
3906 4

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

  • 2关注
  • 0粉丝

大专生

28%

还不是VIP/贵宾

-

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

楼主
zongtaoliu2054 发表于 2014-10-8 07:24:53 |AI写论文
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
提示: 作者被禁止或删除 内容自动屏蔽

藤椅
zongtaoliu2054 发表于 2014-10-9 08:01:59
我用EXCEL 解决了。但是不知道用SAS如何解决。

板凳
无线电波全息学 学生认证  发表于 2019-12-24 16:48:33
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
拉您进交流群
GMT+8, 2025-12-29 08:44