Am 28.09.2020 um 17:10 schrieb Filipe Costa:
Ok, thanks for the quick reply. Just another question related to these models. 
Let's say I run several models in one session and save them in this way:

Model1 <- ols y 0 x1
Model2 <- ols y 0 x2

I can retrieve the models with the code:

Model1.show
Model2.show

But a question I have is the following: can I by then retrieve the coefficients 
and standard errors of the regressions using the console? The variables $coeff 
and $stderr store info just for the last model run, so can't use them after 
running everything. If not the best is then to create scalars just after each 
model to store the variables to then retrieve them. Is there other way?

There are several ways; you could stack the vector resuls ($coeff,
$stderr) one after another into one growing matrix.

Or you could grab the whole $model bundle after each estimation and
store that one. You could even put those bundles together into an array
of bundles, like this:

<hansl>

bundles mymodelbundles

loop foreach i x1 x2

  ols y 0 $i --quiet

  mymodelbundles += $model

endloop

</hansl>

Then you have the coeff and stderr and lots more inside each of the
$model bundles.

cheers

sven
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to