Learn R Programming

popdemo (version 0.1-2)

maxamp: Calculate maximal amplification

Description

Calculate maximal amplification for a specified population projection matrix (PPM) model.

Usage

maxamp(A, vector = "n", return.N=FALSE, return.t=FALSE, return.stage=FALSE,
            conv.iterations=1e+5, conv.accuracy=1e-5)

Arguments

A
a square, primitive, non-negative numeric matrix of any dimension
vector
(optional) a specified initial age/stage distribution of class vector or class matrix with which to calculate a case-specific maximal amplification
return.N
(optional) if TRUE, returns population size at the point of maximal amplification (including effects of asymptotic growth and initial population size), alongside standardised maximal amplification.
return.t
(optional) if TRUE, returns the time at which maximal amplification occurs in the population projection.
return.stage
(optional) if TRUE and vector="n", returns the stage that achieves the bound on maximal amplification
conv.iterations
the maximum number of iterations allowed when calulating convergence time (see details). Please see iterations in convergence.time.
conv.accuracy
the accuracy of convergence (see details). Please see accuracy in convergence.time.

Value

  • If vector="n", the bound on maximal amplification of A. If vector is specified, the case-specific maximal amplification of the model. If return.N=TRUE, return.t=TRUE and/or return.stage=TRUE, a list with possible components:
  • maxampthe bound on or case-specific maximal amplification
  • Nthe population size at the point of maximal amplification, including the effects of initial population size and asymptotic growth. NOTE that N is not indicative of maximum possible population size for a non-standardised model: merely the population size at the point of maximal amplification (i.e. largest positive deviation from lambda-max).
  • tthe projection interval at which maximal amplification is achieved
  • stage(only if vector="n"), the stage that achieves the bound on maximal amplification.

Details

maxamp returns a standardised measure of maximal amplification, so discounting the effects of both initial population size and asymoptotic growth (Stott et al. 2011). If vector is not specified then the bound on maximal amplification (the largest maximal amplification that may be achieved) is returned, otherwise a case-specific maximal amplification for the specified PPM and demographic structure is calculated. Note that not all specified demographic structures will yield a maximal amplification: if the model does not amplify then an error is returned. Setting return.N=T, return.t=T and return.stage=T results in the function returning realised population size at maximal amplification (including the effects of asymptotic growth and initial population size), the time interval at which maximal amplification occurs and (if vector="n"), the stage-bias that results in the bound on maximal amplification, respectively. NOTE that N is not indicative of maximum possible population size for a non-standardised model: merely the population size at the point of maximal amplification (i.e. largest positive deviation from lambda-max). max.amp uses a simulation technique, using project to project the dynamics of the model before evaluating maximum projected density over all t. conv.accuracy and conv.iterations are passed to convergence.time, which is used to find the point of model convergence in order to ensure maximal amplification is correctly captured in model projection. maxamp will not work for imprimitive or reducible matrices.

References

Neubert & Caswell (1997) Ecology, 78, 653-665. Stott et al. (2011) Ecol. Lett., 14, 959-970. Townley & Hodgson (2008) J. Appl. Ecol., 45, 1836-1839.

See Also

Other indices of transient density: reactivity, firststepatt maxatt, inertia

Examples

Run this code
# Create a 3x3 PPM
    A <- matrix(c(0,1,2,0.5,0.1,0,0,0.6,0.6), byrow=TRUE, ncol=3)
    A

    # Create an initial stage structure
    initial <- c(1,3,2)
    initial

    # Calculate the bound on maximal amplification of A
    maxamp(A)

    # Calculate the bound on maximal amplification of A and 
    # return the stage that achieves it
    maxamp(A, return.stage=TRUE)

    # Calculate case-specific maximal amplification of A
    # and initial
    maxamp(A, vector=initial)

    # Calculate case-specific maximal amplification of A
    # and initial and return realised population size and the 
    # time at which it is achieved
    maxamp(A, vector=initial, return.N=TRUE, return.t=TRUE)

Run the code above in your browser using DataLab