jackknife replicate weight in runmlwin
Posted: Mon Jul 15, 2019 10:24 pm
Hello,
Is it possible to use runmlwin on Stata to incorporate jackknife replicate weights for variance estimation in complex survey data?
In the dataset, there is a weight variable which I can include it in the model by using weightvar(). I also have replicate weights for variance estimation but I do not know how to utilize this in runmlwin. Below an example of what needs to be done for Stata codes is shown. Let me know if someone knows how to do this using runmlwin.
Also if you know a resource for using weights in runmlwin in general, let me know. Thank you.
-----------------------------------------------------------------------------------------------------
/*assign jackknife multipliers that vary by stratum*/
local strata ""
local mult ""
forvalues i = 1/25 {
if 'i' != 9 {
local strata "'strata' 'i 'i' 'i'"
local mult "'mult' 0.666667 0.666667 0.666667"
}
if 'i' == 9 {
local strata "'strata' 'i 'i' 'i'"
local mult "'mult' 0.750000 0.750000 0.750000"
}
di "'strata'"
di "'mult'"
/*describe variance estimation method and jackknife replicate weights*/
svyset [pweight=chspr2003wtca], vce(jackknife) mse //
jkrweight(chspr2003repwtca*, multiplier('mult') stratum('strata'))
svy jackknife: tabulate childresultgroup childcohort
-----------------------------------------------------------------------------------------------------
- Sun Lee
Is it possible to use runmlwin on Stata to incorporate jackknife replicate weights for variance estimation in complex survey data?
In the dataset, there is a weight variable which I can include it in the model by using weightvar(). I also have replicate weights for variance estimation but I do not know how to utilize this in runmlwin. Below an example of what needs to be done for Stata codes is shown. Let me know if someone knows how to do this using runmlwin.
Also if you know a resource for using weights in runmlwin in general, let me know. Thank you.
-----------------------------------------------------------------------------------------------------
/*assign jackknife multipliers that vary by stratum*/
local strata ""
local mult ""
forvalues i = 1/25 {
if 'i' != 9 {
local strata "'strata' 'i 'i' 'i'"
local mult "'mult' 0.666667 0.666667 0.666667"
}
if 'i' == 9 {
local strata "'strata' 'i 'i' 'i'"
local mult "'mult' 0.750000 0.750000 0.750000"
}
di "'strata'"
di "'mult'"
/*describe variance estimation method and jackknife replicate weights*/
svyset [pweight=chspr2003wtca], vce(jackknife) mse //
jkrweight(chspr2003repwtca*, multiplier('mult') stratum('strata'))
svy jackknife: tabulate childresultgroup childcohort
-----------------------------------------------------------------------------------------------------
- Sun Lee