[Gretl-users] Question about bundles in loops

Logan Kelly logan.kelly at uwrf.edu
Tue Sep 18 19:25:09 EDT 2012


I am using a loop to estimate several models, and I would like to store the results of each estimate in a bundle, i.e. the results from model1 should be stored in bundel1. So what I need is an array of bundles.

I would like to do something like

loop m = 1..ModelCount
    string results = "results$m"
    bundle @results
    @results["bla bla"] = bla bla

The problem is I cannot declare a bundle in a loop. Any suggestions about how to get something like an array of bundles?


Logan Kelly

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20120918/594d7e26/attachment.html 

More information about the Gretl-users mailing list