楼主: 一个大苹果
5351 35

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

  • 2关注
  • 7粉丝

博士生

93%

还不是VIP/贵宾

-

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

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
拉您进交流群

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

GMT+8, 2024-4-19 16:13