Dear all,
Let me start by saying that I know very little to nothing of survey design, so this may be really simple, but I have no way of knowing.
Someone shared with me a code to run a model. The code is in R, which I don't "speak", but for the most part I've been able to "translate" it into Stata to continue working with my dataset.
However, there's a piece that has to do with survey design, where I am completely lost.
The R code reads like this:
# create a survey design object with SIPP design information
z <-
svrepdesign (
data = y ,
repweights = "repwgt[1-9]" ,
type = "Fay" ,
combined.weights = T ,
rho =(1 - 1 / sqrt( 4 )) ,
weights =~wpfinwgt
)
What would this look like in Stata?
I was looking into svyset but wasn't finding all the options. Since it uses replicate weights, thought it would be BRR, but it also says Fay, so I'm very confused, to say the least.
Anyone?
Thanks in advance!
Let me start by saying that I know very little to nothing of survey design, so this may be really simple, but I have no way of knowing.
Someone shared with me a code to run a model. The code is in R, which I don't "speak", but for the most part I've been able to "translate" it into Stata to continue working with my dataset.
However, there's a piece that has to do with survey design, where I am completely lost.
The R code reads like this:
# create a survey design object with SIPP design information
z <-
svrepdesign (
data = y ,
repweights = "repwgt[1-9]" ,
type = "Fay" ,
combined.weights = T ,
rho =(1 - 1 / sqrt( 4 )) ,
weights =~wpfinwgt
)
What would this look like in Stata?
I was looking into svyset but wasn't finding all the options. Since it uses replicate weights, thought it would be BRR, but it also says Fay, so I'm very confused, to say the least.
Anyone?
Thanks in advance!
Comment