请选择 进入手机版 | 继续访问电脑版
楼主: mcsyky
2423 2

SAS求助 [推广有奖]

  • 0关注
  • 1粉丝

讲师

10%

还不是VIP/贵宾

-

威望
0
论坛币
15324 个
通用积分
167.0054
学术水平
7 点
热心指数
11 点
信用等级
7 点
经验
2833 点
帖子
125
精华
0
在线时间
537 小时
注册时间
2005-12-22
最后登录
2024-3-30
毕业学校
南洋理工大学

mcsyky 发表于 2006-11-22 23:47:00 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

Sas 语句中出现 set <SAS数据> nobs = all nobs=last

nobs还可以接哪些?怎么没有在帮助文件上找不到?

二维码

扫码加我 拉你入群

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

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

关键词:SAS求助 nobs Last 帮助文件 obs SAS

回帖推荐

beatuxlee 发表于2楼  查看完整内容

nobs 是临时变量.用于SET 语句表示从数据集读入的观测数. nobs = all 的用法表现读入所有观测值. nobs=last 用法用于循环语句中处理观测值. do obsnum=1 to last; set temp1 temp2 nobs=last; output; end;

zzheng722 发表于3楼  查看完整内容

**nobs = all nobs=last help you to create a logical variable called 'all' or 'last', it doesn't matter what you want to call it. If you don't create a newvariable using this logical variable, it will never show up. If you want to use it, you can create a new variable called 'totalpeople' and the results are same: totalpeople=all totalpeople=last ********************************************** ...

本帖被以下文库推荐

beatuxlee 发表于 2006-11-24 19:18:00 |显示全部楼层 |坛友微信交流群

nobs 是临时变量.用于SET 语句表示从数据集读入的观测数.

nobs = all 的用法表现读入所有观测值.

nobs=last 用法用于循环语句中处理观测值.

do obsnum=1 to last;

set temp1 temp2 nobs=last;

output;

end;

已有 1 人评分经验 收起 理由
bakoll + 2 热心帮助其他会员

总评分: 经验 + 2   查看全部评分

无为有之始

使用道具

zzheng722 发表于 2007-2-16 07:27:00 |显示全部楼层 |坛友微信交流群

**nobs = all nobs=last help you to create a logical variable called 'all' or 'last', it doesn't matter what you want to call it. If you don't create a newvariable using this logical variable, it will never show up. If you want to use it, you can create a new variable called 'totalpeople' and the results are same:

totalpeople=all

totalpeople=last

**************************************************;

data test1;

input x;

cards;

3.3

5

0.6

11

608

;

run;

data test2;

set test nobs=all;

totalpeople=all;

run;

proc print data=test2;

run;

data test3;

set test nobs=last;

totalpeople=last;

run;

proc print data=test3;

run;

已有 1 人评分经验 论坛币 收起 理由
bakoll + 2 + 10 热心帮助其他会员

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

使用道具

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

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

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

GMT+8, 2024-4-16 18:14