3.原始数据读入SAS分析.ppt

3.原始数据读入SAS分析

Data a; Input x @; Input y ; Cards; 1 2 8 5 3 6 9 7 ; Run; 请分析上面程序产生的数据集 Data b; Input x ; Input y @@; Cards; 1 2 8 5 3 6 9 7 ; Run; Data c; Input x @ ; Input y @@; Cards; 1 2 8 5 3 6 9 7 ; Run; Data d; Input x @ ; Input y @; Cards; 1 2 8 5 3 6 9 7 ; Run; 3. OUTPUT语句 OUTPUT语句把当前的观测输出到正在被创建的SAS数据集中去。 语句格式 OUTPUT [data-set-name]; OUTPUT; 语句后不加说明项。这时,把当前这个观测输出到DATA语句命名的数据集中去。下面的例子利用OUTPUT语句从一个数据行生成多个观测: data repeat; input sub $ mea1-mea3; drop mea1-mea3; mea=mea1; output; mea=mea2; output; mea=mea3; output; cards; a 2 5 4 b

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档