Dear all,
I would like to use the user written program called -mtreatreg- with Stata 12.
I would like to estimate multinomial treatment effect on wage with comparison to a precise control group.
My groups are defined by the variable treatment (float variable), divided in 9 categories
Here a copy of the tabulate command for the treatment variable
treatment | Freq. Percent Cum.
------------+-----------------------------------
0 | 521,372 96.62 96.62
1.945867 | 2,568 0.48 97.09
3.619311 | 500 0.09 97.18
3.891733 | 1,658 0.31 97.49
5.000877 | 306 0.06 97.55
5.8376 | 7,235 1.34 98.89
6.674322 | 829 0.15 99.04
6.946743 | 2,888 0.54 99.58
7.783466 | 2,277 0.42 100.00
------------+-----------------------------------
Total | 539,633 100.00
I manage to use this program but by default, the program chooses the control group randomly among my nine groups. Actually, it chooses category 6 ( = 5.8376) while I would like to estimate these effects with comparison to the first category (= 0 )
So I have tried to specify the base category as following : mtreatreg $ylist $xlist , mtreatment(treatment= AGE AGESQ chld married Tax_revenue_ji ) basecat(0) sim(200) density(normal) difficult
But Stata returns an error message : "basetreatment(0) is not an outcome of treatment; use tabulate for a list of values"
More surprisingly, the program works when I indicate the other variable called "lp1" (double variable) as treatment variable.
But "treatment" is just the inverse of "lp1" since I have created it with the following code line
gen treatment = 7.783466 - lp1
I have tried to modified the type of the variable treatment from float to double but it does not still works.
I know that my question concerns a user written program but I think the problem is more about the format of my variable.
I think about the format problem, especially because I have noted another surprising fact with my variable "treatment"
drop if treatment == 1.945867
(0 observations deleted)
Whereas it should drop 2,568 observations
Does anyone have an idea of what could be the problem ?
Best regards.
Morgan
I would like to use the user written program called -mtreatreg- with Stata 12.
I would like to estimate multinomial treatment effect on wage with comparison to a precise control group.
My groups are defined by the variable treatment (float variable), divided in 9 categories
Here a copy of the tabulate command for the treatment variable
treatment | Freq. Percent Cum.
------------+-----------------------------------
0 | 521,372 96.62 96.62
1.945867 | 2,568 0.48 97.09
3.619311 | 500 0.09 97.18
3.891733 | 1,658 0.31 97.49
5.000877 | 306 0.06 97.55
5.8376 | 7,235 1.34 98.89
6.674322 | 829 0.15 99.04
6.946743 | 2,888 0.54 99.58
7.783466 | 2,277 0.42 100.00
------------+-----------------------------------
Total | 539,633 100.00
I manage to use this program but by default, the program chooses the control group randomly among my nine groups. Actually, it chooses category 6 ( = 5.8376) while I would like to estimate these effects with comparison to the first category (= 0 )
So I have tried to specify the base category as following : mtreatreg $ylist $xlist , mtreatment(treatment= AGE AGESQ chld married Tax_revenue_ji ) basecat(0) sim(200) density(normal) difficult
But Stata returns an error message : "basetreatment(0) is not an outcome of treatment; use tabulate for a list of values"
More surprisingly, the program works when I indicate the other variable called "lp1" (double variable) as treatment variable.
But "treatment" is just the inverse of "lp1" since I have created it with the following code line
gen treatment = 7.783466 - lp1
I have tried to modified the type of the variable treatment from float to double but it does not still works.
I know that my question concerns a user written program but I think the problem is more about the format of my variable.
I think about the format problem, especially because I have noted another surprising fact with my variable "treatment"
drop if treatment == 1.945867
(0 observations deleted)
Whereas it should drop 2,568 observations
Does anyone have an idea of what could be the problem ?
Best regards.
Morgan
Comment