由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - asking for help with Proc SurveySelect again (THANK YOU !!!)
相关主题
could anybody please help check why my codes don't work? Thanks!菜鸟问个sas得问题,关于分数组
新人拜山,请教做SAS programmer主要用哪些procedure?如何在1,2,3,4,5中随机选出2个数来?
新人求问SAS简单问题~~请问:一个pre-screening的问题
HELP!!!!!用SAS sampling的一个问题
也弱问一个SAS里面genotype/SNP variable recoding的问题A question in splitting dataset
怎么构建control group?~~~~~~~~~~~~~~ proc surveyselect 究竟怎样选样本的?
求教如何用sas从一个大population选sampleProc Surveyselect中, 当 reps >=2 时, 样本重复
请教如何用SAS处理这个RANDOM SAMPLING的问题how to output cumulative percent to a dataset from Proc Freq?
相关话题的讨论汇总
话题: 402话题: proc话题: layer话题: asking
进入Statistics版参与讨论
1 (共1页)
z**********i
发帖数: 88
1
I want to draw a certain sample from each stratum, or, layer. Below is the
expected size for each layer:
proc print data=size;run;
layer _NSIZE_
1 391
2 209
3 546
4 204
Below is the frequency of each stratum, or layer in the population.
proc freq data=pop;table layer;run;
Cumulative Cumulativ
layer Frequency Percent Frequency Percent
ƒƒƒƒƒƒƒƒƒƒƒƒ&#
402;ƒƒƒƒƒƒƒƒƒƒƒƒ
ƒƒƒƒƒƒƒƒƒƒƒƒ&#
402;ƒƒƒƒƒƒƒƒƒƒƒƒ
ƒƒƒƒƒƒƒ
1 264 12.47 264 12.47
2 984 46.48 1248 58.95
3 443 20.93 1691 79.88
4 426 20.12 2117 100.00.
When _NSIZE_ is smaller than the population in that layer,it won't select
because not enough population. I know we can use MinSize or Maxsize to
adjust. but tried many times and don't know exactly how to adjust it.
I just want it to draw as much as it can from a layer, if not enough, then
draw the rest from another layer. the total shouldn't change.
Any hint would be greatly appreciated!!!
Thank you!
1 (共1页)
进入Statistics版参与讨论
相关主题
how to output cumulative percent to a dataset from Proc Freq?也弱问一个SAS里面genotype/SNP variable recoding的问题
Help for freq subset怎么构建control group?
Standard error of Percent 的计算求教如何用sas从一个大population选sample
面试问题,大家看看我回答的靠谱么请教如何用SAS处理这个RANDOM SAMPLING的问题
could anybody please help check why my codes don't work? Thanks!菜鸟问个sas得问题,关于分数组
新人拜山,请教做SAS programmer主要用哪些procedure?如何在1,2,3,4,5中随机选出2个数来?
新人求问SAS简单问题~~请问:一个pre-screening的问题
HELP!!!!!用SAS sampling的一个问题
相关话题的讨论汇总
话题: 402话题: proc话题: layer话题: asking