Hello,
I am regressing my treatment on two separate dependent variables.
I would like to formally test if the effect of my treatment on the first dependent variable is significantly different from the effect on the second dependent variable.
Does anyone know how I can formally test this? Ideally, I would use Bonferroni adjusted p-values.
Take the following example. I am estimating the impact of Brands on the weight and length of the cars.
The first step of my analysis is to examine if the effect of going from "Audi" to "Fiat" is significantly different from zero. And I can do this by simply using the test command after my regressions like so.
Now, I would like to examine if my treatment (going from Audi to Fiat) has a different effect on weight and length.
I tried the following
Does anyone know if this is the correct approach? Is there another way to test if my effect of brand is different on weight and length? Also, because I could potentially make 4 comparisons (Audi-Fiat,Olds-Fiat,Olds-Pont,Audi-pont), I would like my results to account for a Bonferroni adjustment for 4 hypothesis tests.
thanks a lot in advance for your help
I am regressing my treatment on two separate dependent variables.
I would like to formally test if the effect of my treatment on the first dependent variable is significantly different from the effect on the second dependent variable.
Does anyone know how I can formally test this? Ideally, I would use Bonferroni adjusted p-values.
Take the following example. I am estimating the impact of Brands on the weight and length of the cars.
Code:
sysuse auto,clear gen brand = word(make, 1) keep if inlist(brand, "Audi", "Fiat", "Olds", "Pont.") encode brand, generate(brand_en) * estimate regression of interest reg length ib1.brand_en eststo rlr reg weight ib1.brand_en eststo rwe
Code:
reg length ibn.brand_en,nocons eststo rlr test 1.brand_en=2.brand_en, mtest(bonf) reg weight ibn.brand_en,nocons eststo rwe test 1.brand_en=2.brand_en, mtest(bonf)
I tried the following
Code:
* joining the two models. suest rlr rwe * test difference in means test [rlr_mean]2.brand_en-[rwe_mean]2.brand_en = 0
thanks a lot in advance for your help
Comment