由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请教SAS Base50中的41题
相关主题
how to use Scan in SAS (so it works like parse in excel)A SAS infile problem
请教SAS base的几道题large dataset impot into SAS
请教两个关于SAS的问题SAS 问题请教
请教一个SAS问题A SAS Multiple Comparison Problem
请教一个SAS问题SAS help: how to count missing values of columns in a datasets
ask SAS codeAnother SAS question
请问base(123题)的第114题请教一个sas的sort date变量问题
请教大家一个SAS问题Quick Question
相关话题的讨论汇总
话题: age话题: sas话题: column话题: base50话题: value
进入Statistics版参与讨论
1 (共1页)
l******5
发帖数: 176
1
data work.family;
infile 'file-specification';
input @1 date_of_birth mmddyy10.
@15 first_name $5.
@25 age 3;
run;
我知道答案,但是不明白真正的原因,那位大牛给解惑一下,谢谢。我试着把age 3.改
为age 2, age 1, age 12, 最后得到的age值都不一样。
t********o
发帖数: 369
2
try to answer your question.
3 overwrites @25, and age 3 means to read age at column 3, so after reading
dateofbirth, name, the pointer goes back to column 3 and read only that
column for age.
At column 3, there is no value for age but a "/", so age value is missing.
you can try put age 1, you will get the first column value for age (0,1,0
for each obs),
age 2, 1,2,1 for each obs;
age 3, no value,
age 4, 0,2,0 and so on.
l******5
发帖数: 176
3
You are so smart. Thanks.

reading

【在 t********o 的大作中提到】
: try to answer your question.
: 3 overwrites @25, and age 3 means to read age at column 3, so after reading
: dateofbirth, name, the pointer goes back to column 3 and read only that
: column for age.
: At column 3, there is no value for age but a "/", so age value is missing.
: you can try put age 1, you will get the first column value for age (0,1,0
: for each obs),
: age 2, 1,2,1 for each obs;
: age 3, no value,
: age 4, 0,2,0 and so on.

t********o
发帖数: 369
4
that's very encouraging since I am old.good luck with sas exam!
1 (共1页)
进入Statistics版参与讨论
相关主题
Quick Question请教一个SAS问题
再问一个sas的处理ask SAS code
问一个sas题请问base(123题)的第114题
菜鸟接着请教sas base123题的112和50题里面的41题区别请教大家一个SAS问题
how to use Scan in SAS (so it works like parse in excel)A SAS infile problem
请教SAS base的几道题large dataset impot into SAS
请教两个关于SAS的问题SAS 问题请教
请教一个SAS问题A SAS Multiple Comparison Problem
相关话题的讨论汇总
话题: age话题: sas话题: column话题: base50话题: value