Hi everyone,
I am wondering whether we can call a Stata program in a Mata function. I need to do the quantile regression for 1000 times, meaning I need to use the qreg Stata command in a loop. I am afraid that Stata would be too slow for this task and I would like to do this in a Mata function. The problem is that I could not find a way to use the qreg command in a mata function. I am wondering whether there is a way to do this. I tried to convert the quantile regression function into a Mata function, but it works much slower than the qreg command. Any thoughts is welcome. Thanks!
I am wondering whether we can call a Stata program in a Mata function. I need to do the quantile regression for 1000 times, meaning I need to use the qreg Stata command in a loop. I am afraid that Stata would be too slow for this task and I would like to do this in a Mata function. The problem is that I could not find a way to use the qreg command in a mata function. I am wondering whether there is a way to do this. I tried to convert the quantile regression function into a Mata function, but it works much slower than the qreg command. Any thoughts is welcome. Thanks!
Comment