[ADMB Users] When to use mfexp

Mark Maunder mmaunder at iattc.org
Thu Feb 16 15:04:14 PST 2012


Are there any guidelines in using mfexp

The following two bits of code give different results in a negative binomial model

                              like=-log((1.0-pzi)*mfexp(log_negbinomial_density(Obs(i,8),ypred,tau)));
                              like=-log((1.0-pzi)*exp(log_negbinomial_density(Obs(i,8),ypred,tau)));

Is there any benefit from replacing

mfexp(log_negbinomial_density(Obs(i,8),ypred,tau))

with

negbinomial_density(Obs(i,8),ypred,tau)

Thanks,

Mark Maunder

IATTC fall workshop: Using Oceanography for Fisheries Stock Assessment and Management
11-14 October 2011, La Jolla, CA
http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Using+Oceanography+for+Fisheries+Stock+Assessment+and+Management+2011




Head of the Stock Assessment Program
Inter-American  Tropical Tuna Commission

President
ADMB Foundation

8604 La Jolla Shores Drive
La Jolla, CA, 92037-1508, USA

Tel: (858) 546-7027
Fax: (858) 546-7133
mmaunder at iattc.org<mailto:mmaunder at iattc.org>
http://www.fisheriesstockassessment.com/TikiWiki/tiki-index.php?page=Mark+Maunder

Visit the AD Model Builder project at
 http://admb-project.org/

See the following website for information on fisheries stock assessment http://www.fisheriesstockassessment.com/


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20120216/190e8eec/attachment.html>


More information about the Users mailing list