[ADMB Users] Reading More than 1 Data File with ADMB-IDE

John Sibert sibert at hawaii.edu
Tue Jul 9 16:20:19 PDT 2013


Ian,
That error is hard coded into nh99/model7.cpp. It could probably be made 
smarter with a bit of programming. It could certainly be made friendlier 
by changing "Error ..." to "Warning ...". Give it a try.
John

John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa
Honolulu HI (GMT-10)
808-294-3842

Visit the ADMB project http://admb-project.org/

On 07/09/2013 11:06 AM, Ian Taylor - NOAA Federal wrote:
> This isn't something related to the ADMB-IDE specifically, but ADMB in 
> general. Splitting up your data into separate files is a great way to 
> make things tider.
>
> Try using this line to change data files:
> ad_comm::change_datafile_name("Simple2.dat");
>
> A related question for the group: does anybody know how to turn off 
> the warning "Error trying to open data input file *.dat" in cases 
> where you choose not to use the default data file name at all?
> -Ian
>
>
> On Tue, Jul 9, 2013 at 10:03 AM, Newman, Ken <ken_newman at fws.gov 
> <mailto:ken_newman at fws.gov>> wrote:
>
>     My apologies if the following is a FAQ (I did search the FAQ and
>     threads of previous postings but maybe not hitting upon the right
>     key words):
>
>     How does one read into ADMB-IDE data that are coming from two
>     different files?
>
>     For example, suppose my tpl file is Simple.tpl, and there are 2
>     data files, Simple1.dat and Simple2.dat.  How do both data files
>     get "loaded"?  Is there some "switch" or "command" within
>     DATA_SECTION?
>     For what it's worth, I'm fitting a state space model and it would
>     be "tidier" to have the covariates associated with the State
>     Process model separate from the response variables in the
>     Observation model portion.
>
>     Ken
>
>     -- 
>     Mathematical Statistician, USFWS
>     Primary Phone:
>      Monday-Wednesday + Friday, 916-930-5644 <tel:916-930-5644>
>      Thursday, 209-334-2968, ext 306 <tel:209-334-2968%2C%20ext%20306>
>
>     _______________________________________________
>     Users mailing list
>     Users at admb-project.org <mailto:Users at admb-project.org>
>     http://lists.admb-project.org/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users




More information about the Users mailing list