[ADMB Users] Relationship between NB in ADMB and NB in R

Ben Bolker bbolker at gmail.com
Sat Feb 11 15:10:07 PST 2012


On 12-02-11 06:07 PM, Mark Maunder wrote:
> Size=(mean^2)/(mean*tau-mean)
> 
>  
> 
> Because
> 
>  
> 
> Var=mean*tau
> 
>  
> 
> And
> 
>  
> 
> Var=mean+(mean^2)/size
> 

  Yes.  You can simplify it a bit further:

  size = mu/(tau-1)

or

  tau = (1+mu/size)


>  
> 
> *From:*users-bounces at admb-project.org
> [mailto:users-bounces at admb-project.org] *On Behalf Of *Mark Maunder
> *Sent:* Saturday, February 11, 2012 12:19 PM
> *To:* users at admb-project.org
> *Subject:* [ADMB Users] Relationship between NB in ADMB and NB in R
> 
>  
> 
> How does the tau parameter in the ADMB negative binomial relate to the
> size parameter in R’s dnbinom(x, size, prob, mu, log = FALSE) function?
> 
>  
> 
>  
> 
> 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
> <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
> <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/
> 
>  
> 
>  
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users




More information about the Users mailing list