Hi everyone,
I'm using the Stata command blp to run a mixed logit. The problem is I need some results that the command generates but doesn't report.
More specifically, I need the vectors s_hat_t and S_hat_t generated in the ado file. Problem is, altough I'm quite used to use Stata, this is the first time i'm having to deal with MATA. I tried some simple things like saving a database after the vectors are generated, but wasn't successful.
One detail that is making this harder is that the vectors I want are generated within a void that uses a second command.
As my database has 5564 markets, the ideal would be that I could save this vector as a variable (the vector contains a value for each market, thus has the same size as my database), instead of just printing in the screen.
Thanks in advance.
I'm using the Stata command blp to run a mixed logit. The problem is I need some results that the command generates but doesn't report.
More specifically, I need the vectors s_hat_t and S_hat_t generated in the ado file. Problem is, altough I'm quite used to use Stata, this is the first time i'm having to deal with MATA. I tried some simple things like saving a database after the vectors are generated, but wasn't successful.
One detail that is making this harder is that the vectors I want are generated within a void that uses a second command.
As my database has 5564 markets, the ideal would be that I could save this vector as a variable (the vector contains a value for each market, thus has the same size as my database), instead of just printing in the screen.
Thanks in advance.
Comment