楼主: 雪隼
3997 5

SAS可以编写实现 放回抽样的程序吗 ? [推广有奖]

  • 1关注
  • 0粉丝

博士生

31%

还不是VIP/贵宾

-

威望
0
论坛币
390 个
通用积分
0.0876
学术水平
2 点
热心指数
3 点
信用等级
2 点
经验
3084 点
帖子
385
精华
0
在线时间
115 小时
注册时间
2007-9-5
最后登录
2024-4-17

楼主
雪隼 发表于 2007-12-27 11:23:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

因为要用到放回抽样,数据样本比较多,如果手动选择的话,很麻烦。。

想请问大家在sas中能否实现这个过程~

二维码

扫码加我 拉你入群

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

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

关键词:程序 SAS 编写

回帖推荐

bakoll 发表于6楼  查看完整内容

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!

沙发
abelus 发表于 2007-12-27 12:01:00
当然可以

可以参考下汪嘉岗的书,里面有例子。
google下,在SAS讨论区有人提起过这个问题。
自己知道过程,自己编程就好了。

藤椅
雪隼 发表于 2007-12-27 16:53:00
楼上的,多谢了~~
Where there is a will, there is a way!

板凳
zhoulibo1005 发表于 2007-12-27 21:32:00

采用SAS编写bootstrap 程序可以进行放回再抽样

报纸
zhoulibo1005 发表于 2007-12-27 21:32:00
我有这个程序,需要可以交换

地板
bakoll 发表于 2015-7-22 22:03:25
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 set */
end;
stop; /* Required when using the POINT= command */
run;
参考
A Practical Introduction to the Bootstrap Using the SAS System

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 12:03