Hello,
I am trying to include an interaction term when using the command wyoung. Here is an example of what I am trying to achieve:
wyoung, cmd("probit outcome treatment female treatment#female, vce(robust)" "probit outcome2 treatment female treatment#female, vce(robust)") familyp(treatment#female) familypexp bootstraps(1000)
However, Stata always comes back with the following message:
The following error occurred when running the command lincom treatment#female:
treatment#female invalid name
r(198);
I have tried various combinations using "i.treatment#i.female", "treatment##female", "1.treatment*1.female", etc., but nothing seems to work.
I could estimate the models using a pre-created variable treatment_female =treatment*female, but this is - as I understand it - problematic when estimating a probit model.
Does anyone have any ideas?
Cheers,
Alex
I am trying to include an interaction term when using the command wyoung. Here is an example of what I am trying to achieve:
wyoung, cmd("probit outcome treatment female treatment#female, vce(robust)" "probit outcome2 treatment female treatment#female, vce(robust)") familyp(treatment#female) familypexp bootstraps(1000)
However, Stata always comes back with the following message:
The following error occurred when running the command lincom treatment#female:
treatment#female invalid name
r(198);
I have tried various combinations using "i.treatment#i.female", "treatment##female", "1.treatment*1.female", etc., but nothing seems to work.
I could estimate the models using a pre-created variable treatment_female =treatment*female, but this is - as I understand it - problematic when estimating a probit model.
Does anyone have any ideas?
Cheers,
Alex
Comment