Dear all,
A dataset I work on has both survey weight and bootstrap weights.
Here is the excerpt of my dataset. Variable 'svywgt' is survey weight, and 'bs1' to 'bs3' are bootstrap weights. My goal is to look at the relative importance of 'space', 'room', 'afford', 'condition' (independent variables) to 'rating' (dependent variable).
Normally, before running regression, I need to specify the survey weight and bootstrap weights in the survey design:
However, when I applied the -svy:- or -svy brr:- prefix to the -domin- command, an error message poped up:
Here are some other things I have found when I explored possible solutions:
My questions are:
1. Is there any quick way to run -domin- command with bootstrap weights that I am not aware of?
2. If I run -domin- but replace [pweight=svyweight] with [pweight=bs1] and repeat it for 1000 times (since the real datasets has 1000 bootstrap weight), does it mean the results generated are the same as running -domin- with bootstrap weight? How should I automate this process and summarize the results?
3. Is there any other way that allows me to run dominance analysis with bootstrap weights, for example, writing my own programs in between commands?
4. After running -domin-, how can I obtain standard error or confidence intervals or each independent variable?
Many thanks!
A dataset I work on has both survey weight and bootstrap weights.
Here is the excerpt of my dataset. Variable 'svywgt' is survey weight, and 'bs1' to 'bs3' are bootstrap weights. My goal is to look at the relative importance of 'space', 'room', 'afford', 'condition' (independent variables) to 'rating' (dependent variable).
Code:
clear input double(rating svywgt bs1 bs2 bs3 space room afford condition) 6 162.7 .5 151.9 .5 3 5 4 3 9 2401.8 2.1 2.1 2.2 5 5 2 3 10 49.2 2 2.4 1.3 3 2 4 2 10 26.9 50 1.8 49.4 5 5 5 5 5 9.2 23.5 .5 .8 1 1 4 2 8 48.6 85.6 39.9 130.5 4 4 3 4 8 1102.6 1067.9 1418.2 4567.2 2 1 2 5 10 2259.2 .5 4589.1 .6 4 4 3 1 4 83.2 81.3 151.6 93.4 3 2 5 4 7 112.5 2.1 245.5 371.3 5 5 2 5 end
Code:
svyset [pweight=svywgt], brrweight(bs1-bs3) vce(brr) mse
Code:
. svy brr: domin rating space room afford condition, reg(regress) fitstat(e(r2)) domin is not supported by svy with vce(brr); see help svy estimation for a list of Stata estimation commands that are supported by svy r(322);
- I am able to use only the survey weight on -domin-, i.e.
Code:
domin rating space room afford condition [pweight=svywgt], reg(regress) fitstat(e(r2))
- The -bootstrap:- prefix is compatible with -domin- command, but it is not using the bootstrap weights in the dataset.
Code:
bootstrap: domin rating space room afford condition, reg(regress) fitstat(e(r2))
My questions are:
1. Is there any quick way to run -domin- command with bootstrap weights that I am not aware of?
2. If I run -domin- but replace [pweight=svyweight] with [pweight=bs1] and repeat it for 1000 times (since the real datasets has 1000 bootstrap weight), does it mean the results generated are the same as running -domin- with bootstrap weight? How should I automate this process and summarize the results?
3. Is there any other way that allows me to run dominance analysis with bootstrap weights, for example, writing my own programs in between commands?
4. After running -domin-, how can I obtain standard error or confidence intervals or each independent variable?
Many thanks!
Comment