On 17/07/2008, at 1:11 PM, Daniel Malter wrote:
Rolf, is he taking a course of yours? :)
No, I don't actually ``teach'' these days. (If ever I did.)
It just looked like a homework problem to me.
Still does, actually.
cheers,
create a vector containing 1,2,3
sample one value
remove the sampled value from the initial vector
sample again
now select the observations belonging to the strata indexed by the two
sampled values
-> not difficult. Most certainly, other approaches work too, maybe even
better.
Rolf, is he ta
On 17/07/2008, at 11:45 AM, lamack lamack wrote:
Dear all, I have two vector:
strata response1 11 21 32 12 22 3. .. .. .10 110
210 3. .. .. .100 1100 2100 3
I need to get a stratified random sample of size = 100, such that:
if I select response = 1 in strata 1 then
Dear all, I have two vector:
strata response1 11 21 32 12 22 3. .. .. .10 110 210 3. ..
.. .100 1100 2100 3
I need to get a stratified random sample of size = 100, such that:
if I select response = 1 in strata 1 then I need sample 2 or 3 in strata 2
if I select respons
4 matches
Mail list logo