Hi Statalist,
Trying to run suest after bootstrap using the code below:
Here the variable "dum" takes values 1,2, and 3. The code runs just fine. the command <estimates dir> correctly returns all the three stored results.
However, the last line suest returns the error "exp_el1 was estimated with a nonstandard vce (bootstrap)"
I would like to be able to test the coefficient Expel1=Expel2=Expel3, etc. after suest. Is there any way to pull it off?
I tried the code
but to no avail. But it says "vcetype bootstrap not allowed".
Thank you in advance for any potential leads.
Best,
Rijo.
Trying to run suest after bootstrap using the code below:
Code:
cap program drop Expelast
program define Expelast, rclass
args i
qui areg yvar xvar1 xvar1 xvar2 xvar3 xvar4 if dum==`i', absorb(clust)
local a0 =_coef[xvar1]
qui sum yvar if dum==`i'
local vbar =r(mean)
return scalar Expel`i' =1-b1+(`a0'/`vbar')
end
forvalues i=1/3 {
bootstrap Expel`i'=r(Expel`i'), reps(1000) seed(1): Expelast `i'
estimates store exp_el`i'
}
suest exp_el*
However, the last line suest returns the error "exp_el1 was estimated with a nonstandard vce (bootstrap)"
I would like to be able to test the coefficient Expel1=Expel2=Expel3, etc. after suest. Is there any way to pull it off?
I tried the code
Code:
suest exp_el*, vce (robust)
Thank you in advance for any potential leads.
Best,
Rijo.

Comment