在SAS中proc expand是做什么用的~proc expand data=have out=want method=step extrapolate;by descending id;id year;convert code1 ;run;expand是做什么用的?data=have out=want method=step by descending id;id year; 这两句和iD有什么关系.
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/27 00:14:31
![在SAS中proc expand是做什么用的~proc expand data=have out=want method=step extrapolate;by descending id;id year;convert code1 ;run;expand是做什么用的?data=have out=want method=step by descending id;id year; 这两句和iD有什么关系.](/uploads/image/z/14227846-70-6.jpg?t=%E5%9C%A8SAS%E4%B8%ADproc+expand%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%94%A8%E7%9A%84%7Eproc+expand+data%3Dhave+out%3Dwant+method%3Dstep+extrapolate%3Bby+descending+id%3Bid+year%3Bconvert+code1+%3Brun%3Bexpand%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%94%A8%E7%9A%84%3Fdata%3Dhave+out%3Dwant+method%3Dstep+by+descending+id%3Bid+year%3B+%E8%BF%99%E4%B8%A4%E5%8F%A5%E5%92%8CiD%E6%9C%89%E4%BB%80%E4%B9%88%E5%85%B3%E7%B3%BB.)
在SAS中proc expand是做什么用的~proc expand data=have out=want method=step extrapolate;by descending id;id year;convert code1 ;run;expand是做什么用的?data=have out=want method=step by descending id;id year; 这两句和iD有什么关系.
在SAS中proc expand是做什么用的~
proc expand data=have out=want method=step extrapolate;
by descending id;
id year;
convert code1 ;
run;
expand是做什么用的?
data=have out=want method=step
by descending id;
id year; 这两句和iD有什么关系.求解释下语句之间表达的意思~
在SAS中proc expand是做什么用的~proc expand data=have out=want method=step extrapolate;by descending id;id year;convert code1 ;run;expand是做什么用的?data=have out=want method=step by descending id;id year; 这两句和iD有什么关系.
1.proc expand主要用来处理时间序列问题,
比如,将日线数据转换为月度单位数据(季度、年);求数据的平滑值(移动平均、求和、方差等等).
2.data=have,have是你需要操作的数据集,out=want,want是expand操作得到的结果数据集
3.第一个id是数据中的一个变量,对其进行降序排序;第二个id是proc expand语句的一个函数,
id函数表示对数据have中一个数值型变量进行识别,通常id后面的变量是时间变量(year,month,day...).
id 函数要与by函数一起用,且它后面的变量不能有重复值.