全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3934 4
2014-10-08
悬赏 8 个论坛币 未解决
中国证监会上给的财务数据库是季度的,我需要每一个月的数据。比如在我的EXCLE中,公司firm 10, 提供了199512月的TA,但是我要199511和199510,我希望是199511和199510没有数据的等于有数据的199512. 同样,199601到199605没有数据,我希望等于有数据的199606. 199701到199705没有数据,我希望等于199706的数据。
请问哪位大侠知道怎么在SAS中处理吗?
renda.xlsx
大小:(311.16 KB)

 马上下载






二维码

扫码加我 拉你入群

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

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

全部回复
2014-10-8 08:26:44
提示: 作者被禁止或删除 内容自动屏蔽
二维码

扫码加我 拉你入群

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

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

2014-10-9 08:01:59
我用EXCEL 解决了。但是不知道用SAS如何解决。
二维码

扫码加我 拉你入群

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

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

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

扫码加我 拉你入群

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

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

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/

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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