Hello,
I would like to know if there is a way to use suest after using the margins command following a Tobit regression.
I have been using regression coefficients in a test calculation for my project; this involves running two regressions (the same data and independent variables, but differing dependent variables) and referencing coefficients in each as part of a larger calculation. Here is a simplified example of the code below:
However, I have since tried running the same test with a Tobit model (see code below), and receive the error: ape_correct was estimated with a nonstandard vce (delta).
Is there a way that I can access the APEs in the same way as the regression coefficients? I have tried several variations of the same code and commands, but it either causes the same error or saves the APEs as a scalar (in which case the test does not produce results).
Please let me know if you have any ideas, or if I am in the wrong area entirely.
Best wishes,
Katy
(Stata 17)
I would like to know if there is a way to use suest after using the margins command following a Tobit regression.
I have been using regression coefficients in a test calculation for my project; this involves running two regressions (the same data and independent variables, but differing dependent variables) and referencing coefficients in each as part of a larger calculation. Here is a simplified example of the code below:
Code:
// Regress // Create and Store coefficients regress team_correct endoimposed endonotimposed exoimposed exonotimposed, noconstant est store reg_correct regress team_tetris endoimposed endonotimposed exoimposed exonotimposed, noconstant est store reg_tetris suest reg_correct reg_tetris, vce(cluster session) // Run Tests test ([reg_correct_mean]endoimposed*3*0.2)+([reg_tetris_mean]endoimposed/60*0.16)=([reg_correct_mean]exoimposed*3*0.2)+([reg_tetris_mean]exoimposed/60*0.16)
Code:
// Create and Store coefficients tobit team_correct endoimposed endonotimposed exoimposed exonotimposed, ll(0) noconstant margins, predict(ystar(0,.)) dydx(*) post est store ape_correct tobit team_tetris endoimposed endonotimposed exoimposed exonotimposed, ll(0) noconstant margins, predict(ystar(0,.)) dydx(*) post est store ape_tetris suest ape_correct ape_tetris // Run Tests test (0.2*[ape_correct_team_correct]endoimposed*3)+([ape_tetris_team_tetris]endoimposed/60*0.16) = (0.2*[ape_correct_team_correct]exoimposed*3)+([ape_tetris_team_tetris]exoimposed/60*0.16)
Please let me know if you have any ideas, or if I am in the wrong area entirely.
Best wishes,
Katy
(Stata 17)
Comment