Dear Statalist users!
I'm estimating dominance statistics using domin for separate models by subgroup (gender in my case) with bootstrapped confidence intervals. Using test, I can easily test for differences between the dominance statistics within one model/subgroup. Instead, I would like to test for differences for the same indicator between the two subgroup-models.
To illustrate my problem, I'd like to share some syntax:
Does anyone know how to do this? Thank you so much in advance!
I'm estimating dominance statistics using domin for separate models by subgroup (gender in my case) with bootstrapped confidence intervals. Using test, I can easily test for differences between the dominance statistics within one model/subgroup. Instead, I would like to test for differences for the same indicator between the two subgroup-models.
To illustrate my problem, I'd like to share some syntax:
Code:
webuse auto, clear *Dominance analyses with bootstrapping bootstrap, reps(50): domin price mpg headroom *Bootstrapped results estat bootstrap *Comparing dominance statistics within the model - no problem test mpg = headroom *Beginning of subgroup analyses: *Clear stored estimates just in case eststo clear *Repeating the previous bootstrapping over the two foreign categories bysort foreign: eststo: bootstrap, reps(50): domin price mpg headroom *Testing within the (last estimated) model still works test mpg = headroom *Showing stored estimates - subgroup estimates are stored as est1 and est2. I want to compare the estimates for mpg between the two subgroups eststo dir *It might look something like this, but I just can't seem to find the right syntax to access the estimates from each model - if it is even possible test [est1]mpg = [est2]mpg

Comment