因为要用到放回抽样,数据样本比较多,如果手动选择的话,很麻烦。。
想请问大家在sas中能否实现这个过程~
楼主: 雪隼
|
3529
5
SAS可以编写实现 放回抽样的程序吗 ? |
博士生 31%
-
|
回帖推荐sas几种抽样方法 https://bbs.pinggu.org/thread-2423706-1-1.html
放回增加样本bootstrap
data bootsamp;
do i = 1 to nobs; /* Want same no. obs as in ORIGINAL */
x = round(ranuni(0) * nobs); /* x randomly selected from values 1 to NOBS */
set original
nobs = nobs
point = x; /* This selected the xth observation in ORIGINAL */
output; /* Send the selected observation to the new data se ...
本帖被以下文库推荐
| ||
Where there is a will, there is a way!
|
|||
| ||
| ||
Where there is a will, there is a way!
|
||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明