NaN values for random effects.

8 переглядів
Перейти до першого непрочитаного повідомлення

michael.v.clawson

не прочитано,
23 квіт. 2021 р., 17:23:5223.04.21
Кому: ADMB Users
Hi all I am using ADMB 12.0. I am running a model with a single annual vector of random effects vector. 

Does anyone know or have a theory as to why the random effects values themselves would be "nan"? 

Thanks,
Mike

Johnoel

не прочитано,
23 квіт. 2021 р., 17:39:1223.04.21
Кому: michael.v.clawson, ADMB Users
A nan is generated when the result of the computation is undefined.  For example, a number divided by
zero.  To fix it, you will need to check the tpl file for possible coding errors.  Also, ADMB-12.3 has just 
been released which has many bug fixes and improvements (see download link below).


Let me know if you need any help with tracking down the nans.

Johnoel

--
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@admb-project.org.

Michael Clawson

не прочитано,
23 квіт. 2021 р., 18:41:0623.04.21
Кому: Johnoel, ADMB Users
I declare :

random_effects_vector tt_f(0,nyears_f-1,2);

the values of the tt_f vector are nan and the optimization fails. 

I ended up changing the optimization phases and removing a different parameter (which was poorly estimated) and it worked. I am not totally clear on why that may have solved the problem, except that the poorly estimated parameter was hindering the optimizer maybe? Do RE's need to be in the final optimization phase? 
--

Dr. Michael V. Clawson

Boone and Crockett Fellow, Post-doctoral Researcher

College of Forestry & Conservation, University of Montana.

Відповісти всім
Відповісти автору
Переслати
0 нових повідомлень