由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请教如何用SAS处理这个RANDOM SAMPLING的问题
相关主题
A question in splitting datasetsample size vs. number of regressors
有谁熟习用SAS做RANDOM SAMPLING, 请教!如何解释OUTPUT
[Teradata] How to randomly select one observation from each group?[Help] SAS Proc mixed
用SAS sampling的一个问题[合集] how to randomly draw 10% sample from a data set?
这样还能算Randomized sample吗问个用SAS做Random Sample的问题
求高人指点一个SAS数据的转换问题求教如何用sas从一个大population选sample
How to deal with unbalanced data[Help] SAS CODE FOR RANDOM SAMPLING
求高手指教,这个随机过程是Winner Process吗?请教SAS SQL
相关话题的讨论汇总
话题: sampling话题: randomly话题: data话题: 100
进入Statistics版参与讨论
1 (共1页)
p*****o
发帖数: 543
1
I HAVE AN ORIGINAL DATA SET WITH VARIABLE: ID,AND THE DATA SET LOOKS LIKE:
ID
1_A
1_B
1_C
1_D
2_A
2_B
2_C
2_D
.....
.....
100_A
100_B
100_C
100_D
我现在只需要一半的数据(RANDOMLY SELECTED), 但问题是,如果选择了1_A,那么 1_B,
1_C 还有 1_D 也必须被选上?
试了PROC SURVEYSELECT,但是不知道如何处理这个问题,请大侠赐教!!
THANKS A LOT!!
l***a
发帖数: 12410
2
split the name into two variables (1,a)... (100,d). then transpose

【在 p*****o 的大作中提到】
: I HAVE AN ORIGINAL DATA SET WITH VARIABLE: ID,AND THE DATA SET LOOKS LIKE:
: ID
: 1_A
: 1_B
: 1_C
: 1_D
: 2_A
: 2_B
: 2_C
: 2_D

o****o
发帖数: 8077
3
sample the numbers, instead of all instances individually
p*****o
发帖数: 543
4
could you tell me a little bit more....
which procedure? proc surveyselect? how could i only random sampling the
numbers?
thanks a lot

【在 o****o 的大作中提到】
: sample the numbers, instead of all instances individually
p*****o
发帖数: 543
5
then transpose again after sampling? sounds good!
thanks !!

【在 l***a 的大作中提到】
: split the name into two variables (1,a)... (100,d). then transpose
o****o
发帖数: 8077
6
in your sampling scheme, you will select all records that have the same
prefix number as the one you selected, which means the rest are not randomly
selected but only the first one, which amounts to select the numbers 1,...,
100
so that you use proc surveyselect to randomly choose 50 numbers and merge
with the original data on their numbering

【在 p*****o 的大作中提到】
: could you tell me a little bit more....
: which procedure? proc surveyselect? how could i only random sampling the
: numbers?
: thanks a lot

p*****o
发帖数: 543
7
thanks a lot!!

randomly
1,...,
merge

【在 o****o 的大作中提到】
: in your sampling scheme, you will select all records that have the same
: prefix number as the one you selected, which means the rest are not randomly
: selected but only the first one, which amounts to select the numbers 1,...,
: 100
: so that you use proc surveyselect to randomly choose 50 numbers and merge
: with the original data on their numbering

1 (共1页)
进入Statistics版参与讨论
相关主题
请教SAS SQL这样还能算Randomized sample吗
random sampling in R求高人指点一个SAS数据的转换问题
SAS random number generatior该怎么用呀?How to deal with unbalanced data
Approximate random sample求高手指教,这个随机过程是Winner Process吗?
A question in splitting datasetsample size vs. number of regressors
有谁熟习用SAS做RANDOM SAMPLING, 请教!如何解释OUTPUT
[Teradata] How to randomly select one observation from each group?[Help] SAS Proc mixed
用SAS sampling的一个问题[合集] how to randomly draw 10% sample from a data set?
相关话题的讨论汇总
话题: sampling话题: randomly话题: data话题: 100