fig9.4 | R Documentation |
This function generates Figure 9.4 by estimating the maximum likelihood parameter values of the ricker function, and plotting the best fit and generating an AIC table showing comparison between the Ricker function and a density independent function. The default probability mass function is Poisson.
fig9.4(pmf = "poisson", viewcode = FALSE)
pmf |
a character string that is either "poisson" or "nbinom", indicating the probabiilty function to be used in model fitting |
viewcode |
TRUE or FALSE (default) indicating whether to print the function code |
A matrix showing negative log likelihood, AIC, and delta AIC
# generate plot in Fig 9.4 and get AIC table
fig9.4()
# Repeat using negative binomial model
fig9.4(pmf = "nbinom")
#' #view commands
fig9.4(viewcode = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.