fig9.4: Fit Song Sparrow Reproductive Success

View source: R/fig9.4.R

fig9.4R Documentation

Fit Song Sparrow Reproductive Success

Description

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.

Usage

fig9.4(pmf = "poisson", viewcode = FALSE)

Arguments

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

Value

A matrix showing negative log likelihood, AIC, and delta AIC

Examples

# 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)

tessington/quantecol documentation built on June 1, 2025, 9:06 p.m.