I'm writing a program based on sqreg (simultaneous quantile regression command)
sqreg repeats the regression until having # repetitions, following the boostsraping parameter set in reps() option, default being 20.
But, when you have a poor model, some estimates fail, which leads Stata to run much more than # reps, as indicates the red crosses in the result display.
I'd like to store the number of total attempts, or just the number of failures, but I do not see them in return list nor in ereturn list.
e(reps) only returns the # parameter set in reps().
How could I retrieve them?
Here's a MWE
I want the number of red crosses, if this is possible, to indicate how good/poor is the model they're trying to run.
Many thanks,
sqreg repeats the regression until having # repetitions, following the boostsraping parameter set in reps() option, default being 20.
But, when you have a poor model, some estimates fail, which leads Stata to run much more than # reps, as indicates the red crosses in the result display.
I'd like to store the number of total attempts, or just the number of failures, but I do not see them in return list nor in ereturn list.
e(reps) only returns the # parameter set in reps().
How could I retrieve them?
Here's a MWE
Code:
sysuse auto.dta,clear sqreg mpg rep78, quantile (.2, .35, .5, .65, .8) reps(100) return list ereturn list
Many thanks,
Comment