[ADMB Users] ADMB RE problems
Rubén Roa
rroa at azti.es
Thu Jul 31 00:57:44 PDT 2014
Dear Gavin, thanks, see my answers to your four points below:
Cheers
Ruben
________________________________
Ruben H. Roa-Ureta, Ph. D.
AZTI Tecnalia, Marine Research Division
Txatxarramedi Ugartea z/g, Sukarrieta,
Bizkaia, Spain
________________________________
________________________________
From: Gavin Fay - NOAA Affiliate
Sent: Wednesday, July 30, 2014 10:23 PM
To: Rubén Roa
Subject: ADMB RE problems
Hi Ruben,
Based on a quick glance at you tpl file, I note the following:
1. You have calculations in the procedure section pertaining to estimated parameters that is not in the separable functions (exponentiating the model parameters). In a separable model, all calculations must be done inside the separable functions.
R: I read that bit in the ADMB-RE manual but in fact in doesn't matter. Whether I put these exponentiations both in the procedure section and the separable functions, or just in the separable function, the result is the same (except that the exponentiated parameters are not reported). Pedersen et al's tpl also works with those exponentiations in the procedure section and the separable functions.
2. You have multiple declarations of the same variable (i.e. the parameter names in your separable functions are the same as those declared in the PARAMETER_SECTION). I do not know whether this is an issue, but common practice is to modify the names of parameters in the separable functions to force them to be local (e.g. logK_i rather than logK).
R: I didn't know that. However, note that my model now works as I posted it just by adding phases to parameters. These are 1 to 5 for Sdy, SdU, p, r. and K, respectively. Also the lower bound for Sdy needs to be lowered to 8.0.
3. Have you tried initializing the random effects at non-zero values and running your model using -noinit ?
R: Nope, I should try that because these random effects are in the order of tens of thousands.
4. Does your model run ok with the random_effects_vector replaced as a init_vector and the separable functions replaced with regular functions? (you will probably have to not estimate the variance term). If compiling this at least runs and gives you answers (albeit wrong ones) that would tell me that the problem is related to your treatment of separability.
R: As I wrote above, the random effects models now works as posted, by adding the phases. The estimates and correlation matrix were quite reasonable.
Hope this helps.
Cheers,
Gavin
>>
Message: 2
Date: Sat, 26 Jul 2014 07:31:54 +0000
From: Rub?n Roa <rroa at azti.es<mailto:rroa at azti.es>>
To: "users at admb-project.org<mailto:users at admb-project.org>" <users at admb-project.org<mailto:users at admb-project.org>>
Subject: [ADMB Users] State-space Pella-Tomlison model goes ballistic
Message-ID: <
b4a1d3b0950946329f342034462028db at DSREXCH2013.azti.local>
Content-Type: text/plain; charset="iso-8859-1"
Hi ADMB-experts,
I'm trying to fit a Pella-Tomlinson model to absolute annual biomass MLEs from another, more basic model, and the catch history of a sea urchin fishery from southern Chile. I took the Theta tpl of Pedersen et al. (2011, Ecological Modelling 222:1394) to adapt it to my case. The catch history is 28 years long (1986 - 2013) whereas the MLEs of absolute biomass cover the latest 18 years.
The problem is that although the hyper-parameters seem to have been estimated, the random effects estimates are printed as? -1.#QNBe+00 whereas the standard errors and correlations are printed as -1.#INDe+00 or -1.#IND in the cor file.
The par file does print the random effect estimates but the max. gradient component is very high.
I seem to face some run time issues but since my experience with ADMB is very limited and this is my first try at a state-space model with ADMB-RE, I cannot rule out some programming issues, poor initial values, or something I haven't even considered.
Thanks in advance for any advice if you can take a look at my code.
Ruben
________________________________
Ruben H. Roa-Ureta, Ph. D.
AZTI Tecnalia, Marine Research Division
Txatxarramedi Ugartea z/g, Sukarrieta,
Bizkaia, Spain
________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: statspacreloxbiom1.tpl
Type: application/octet-stream
Size: 1656 bytes
Desc: statspacreloxbiom1.tpl
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140726/dea3b94c/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: statspacreloxbiom1.dat
Type: application/octet-stream
Size: 505 bytes
Desc: statspacreloxbiom1.dat
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140726/dea3b94c/attachment-0003.obj>
--
"The contents of this message are mine personally
and do not necessarily reflect any position of NOAA."
Gavin Fay, Ph.D.
Postdoctoral Research Associate (current position)
National Marine Fisheries Service, Woods Hole MA.
Assistant Professor (starting September 2014)
University of Massachusetts Dartmouth
Department of Fisheries Oceanography
School for Marine Science and Technology
Phone: +1-508-495-2046
Email: gavin.fay at noaa.gov<mailto:gavin.fay at noaa.gov>
Web: http://gavinfay.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20140731/8080d912/attachment-0001.html>
More information about the Users
mailing list