You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
You can use bootstrap command to calculate the CI. here is a small program to do that:
Code:
cap program drop coef_v
program define coef_v, rclass
quietly summarize `1'
return scalar CV = r(sd)/ r(mean)
end
sysuse auto, clear
bootstrap r(CV), reps(200) bca: coef_v price
estat bootstrap, all
The `1' in Stata programming language refers to the first variable in the program. the program above is based on results from summarize command, so only the first variable after the name of the program, in this case coef_v, is passed to the summarize command.
Comment