Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bootstrapping Survey Weights and strata

    Hello, I want to use the survey weights and survey stratification with the -arhomme- command, I have written the following code but it is not correct, if anyone has any ideas or suggestions for how to implement the survery weights and stratification I would be thankful.


    Code:
    svyset raehsamp [pweight=new_weight], strata (raestrat)
    bsweights bs_, n(-1) reps(50) seed(4881269) 
    svyset [pw=new_weight], bsrw(bs_*)
    svy bootstrap bs_*: arhomme log_avrg_cost inc_d i.endentulism race age_cat male education veteran mothered wealth smoke_now chronicdisease, select(r11dentst = dentalinsurance_w1 endentulism inc_d race age_cat male education veteran mothered wealth smoke_now chronicdisease) quantiles(0.10, 0.25, 0.50, 0.75, 0.90) taupoints(29) rhopoints(35)  meshsize(1) graph frank centergrid(-0.80) nostderrors
Working...
X