Announcement

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

  • bsweights with arhomme command

    I'm trying to implement survey weights using the user-generated command arhomme. However, since the svyset command does not work with arhomme, I am attempting to use the bsweights command instead. I'm getting the error below, does this mean that the arhomme command is not compatible with bsweights? If not is there a way of implementing the survey weights and the stratification with the -arhomme- command?


    Code:
    
    svyset raehsamp [pweight=new_weight], strata (raestrat)
    bsweights bs_, n(-1) reps(50) seed(4881269)
    svyset [pw=new_weight], bsrw(bs_*)
     
    
    bs4rw, rweights(bs_*): arhomme log_avrg_cost inc_d endentulism race age_cat male education veteran mothered wealth smoke_now chronicdisease [pw=new_weight], select(r11dentst dentalinsurance_w1) quantiles(0.5) taupoints(7) rhopoints(25) gaussian meshsize(1)
    
    
    an error occurred when bs4rw executed arhomme
    r(491);
    Last edited by Luis Mijares Castaneda; 05 Feb 2025, 13:15.
Working...
X