06-13-2013 05:31 PM
I am not experienced in SAS codes. Any help that you could give would be much appreciated. I want to use SAS to to a maximum likelihood estimation. I have SAS codes that can do the estimation. However, the problem is that I would like to do many runs of this estimation, with each run using a different set of initial values for the parameters. I have about 100 sets of initial values that I would like to try, But I don't know the SAS codes that can do this automatically. My current codes can only do one run at a time. I'd like to be able to do 100 runs in one go. Is there a SAS code that will allow me to do this? Thanks.
06-14-2013 01:03 PM
Usually to repeatedly execute code you could use a loop, whether data step or macro depends on the circumstance.
Perhaps if you share your code people might be able to advise you better.
Please see https://communities.sas.com/docs/DOC-2263
06-15-2013 11:01 PM
If you intend to use PROC NLIN then you could combine BY group processing and PARAMETERS / PDATA=myDataset initial values specification to iterate through your initial value sets.