楼主: aaronsong23
2102 3

[实际应用] 请问各位高人,有没有那本书详细介绍关于群组抽样分析的sas程序的书呢? [推广有奖]

  • 4关注
  • 0粉丝

本科生

9%

还不是VIP/贵宾

-

威望
0
论坛币
1004 个
通用积分
1.2000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
640 点
帖子
36
精华
0
在线时间
72 小时
注册时间
2013-10-14
最后登录
2025-6-28

楼主
aaronsong23 发表于 2014-1-20 08:46:24 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
如题,在数据分析中,遇到群组抽样的问题,但是不知道哪里有相关方面的书籍或文献可以参考学习,特别是在SAS程序设计方面的,求坛子里的大侠们赐教!多谢多谢!
二维码

扫码加我 拉你入群

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

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

关键词:sas程序 抽样分析 详细介绍 有没有 数据分析 程序

沙发
huangpengfei 发表于 2014-3-5 11:38:31
同样需要,楼主若有了,希望可以拿出来分享!

藤椅
crcazhai 发表于 2014-4-9 16:50:52
在sas 程序示例中就有,没有比这个更详细的介绍了。

板凳
Lisrelchen 发表于 2014-5-6 04:22:39
Usage Note 24555: Using PROC SURVEYSELECT for single-stage cluster sampling
Details        About        Rate It       
Beginning with SAS/STAT 9.22 in SAS 9.2 TS2M3, use the SAMPLINGUNIT or CLUSTER statement to name variables that identify the sampling units as groups of observations (clusters).
For example, suppose you have 10 different clusters with one to five people per cluster.
      data A;
        do ClusterID=1 to 10;
          do i=1 to 1+int(5*ranuni(34920));
            if i=1 then PersonID=0;
            PersonID+1;
            output;
          end;
        end;
        drop i;
        run;
These statements select a simple random sample of three clusters without replacement:
      proc surveyselect data=a out=sample method=srs sampsize=3 seed=377183 noprint;
        samplingunit ClusterID;
        run;
Cluster sampling involves sampling units that are groups or clusters, each consisting of one or more subunits. Often, a listing of clusters is available while the complete listing of subunits or observations within clusters is not. Clusters can be sampled, and an enumeration of subunits obtained later for data collection or further subsampling. Even if an enumerated list is available, there could be other constraints on collecting data from units that are selected randomly from among the entire population, and cluster sampling is done instead. (Note that when a listing of all subunits is available, estimates based on a random sample from the entire population are often more precise than those obtained from a cluster sample. This is because of the tendency for units within clusters to be more alike than units between clusters.)
If a listing of the entire target population is available and you want to carry out a cluster sample, the following shows how PROC SURVEYSELECT can be used in releases prior to SAS 9.2 TS2M3. The steps are to identify the individual clusters, select a random sample of clusters, and then collect all the original observations from each sampled cluster.
Using the same 10 cluster data set above, first identify the individual clusters:
      proc freq data=A noprint;
        tables ClusterID / out=ClusterIDList(drop=count percent);
        run;
The following statements select a simple random sample without replacement of three of the cluster ID's:
      proc surveyselect data=ClusterIDList out=ClusterSample method=srs n=3 noprint;
        run;
Collect all the observations for each sampled cluster from the original data set to create the final sample:
      data Sample;
        merge ClusterSample(in=sample) A(in=all);
        by ClusterID;
        if Sample and All;
        run;
The IN= data set option creates a new variable that indicates whether the data set contributes to the current observation. Using the MERGE and BY statements above to match-merge the sample of clusters with the original data, and then subsetting using the IF statement causes only those CLUSTERIDs that exist in both the sample of clusters and the original data set to be included in the SAMPLE data set.
      proc print data=Sample;
        run;


Operating System and Release Information
Product Family        Product        System        SAS Release
Reported        Fixed*
SAS System        SAS/STAT        All        n/a       
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.

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

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