楼主: 一个大苹果
6375 35

[原创博文] sas 提速 编程效率 [推广有奖]

  • 2关注
  • 7粉丝

已卖:93份资源

博士生

93%

还不是VIP/贵宾

-

威望
0
论坛币
6122 个
通用积分
2.2805
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
4930 点
帖子
454
精华
0
在线时间
152 小时
注册时间
2010-3-23
最后登录
2021-10-18

楼主
一个大苹果 发表于 2012-3-30 16:46:28 |AI写论文
20论坛币
各位大虾好,小生正在写毕业论文,使用sas处理数据时有些苦恼,请高人指点:



1.感觉很伤硬盘;
2.宏运行要比单独运行慢,宏的好处是省去繁琐工序,但是感觉速度并不快;
3.提高sas编程效率、运行效率的要点、窍门是什么;
4.整体运行一个大程序时,如果只在整个程序的结尾写一个run,会提高速度吗?





小生这厢有礼了~

关键词:SAS处理数据 SAS编程 请高人指点 毕业论文 处理数据 毕业论文 程序

回帖推荐

bobguy 发表于6楼  查看完整内容

Please my posting on "sas 运行速度 问题". I highlight the point here. 1) prepare you data once and arrange it in groups and sort it by groups. This will save your time on segmenting data and appending your results. 2) regression once using by statement with option of p= on output statement. This will save you a lot of time on regressing them separately and on calculating the predict valu ...

本帖被以下文库推荐

沙发
sl122113 发表于 2012-3-30 18:54:45
可以尽量减少读取数据的次数,可以建立个index
Let Our Life Be Magic And Open

藤椅
一个大苹果 发表于 2012-3-30 21:50:09
sl122113 发表于 2012-3-30 18:54
可以尽量减少读取数据的次数,可以建立个index
谢谢这位兄台,小生驽钝,能不能细说

板凳
一个大苹果 发表于 2012-3-30 23:23:24
求助求助

报纸
josephwen 发表于 2012-3-31 03:30:46
数据的规模有多大呢?
主要对数据进行哪些处理?

地板
bobguy 发表于 2012-3-31 08:00:44
Please my posting on "sas 运行速度 问题".

I highlight the point here.

1) prepare you data once and arrange it in groups and sort it by groups. This will save your time on segmenting data and appending your results.

2) regression once using by statement with option of p= on output statement. This will save you a lot of time on regressing them separately and on calculating the predict value your own.

Good luck.
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

7
一个大苹果 发表于 2012-3-31 09:54:17
josephwen 发表于 2012-3-31 03:30
数据的规模有多大呢?
主要对数据进行哪些处理?
不一定,千万至万,主要是合并、提取

8
一个大苹果 发表于 2012-3-31 09:59:45
bobguy 发表于 2012-3-31 08:00
Please my posting on "sas 运行速度 问题".

I highlight the point here.
谢谢您的热心参与。
您的意思是把原始数据分门别类的储存好,以便日后调用?另p=是什么命令?
小生驽钝,不甚清楚,可否详解。

9
chendonghui1987 发表于 2012-3-31 11:27:57
1.尽量先筛选数据,减少数量级
2.分组,排序
3.建立索引
4.等待完成

10
一个大苹果 发表于 2012-3-31 20:53:53
chendonghui1987 发表于 2012-3-31 11:27
1.尽量先筛选数据,减少数量级
2.分组,排序
3.建立索引
谢谢兄台的指点,
能否说说建立索引方面的知识

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

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