Learn R Programming

secr (version 2.5.0)

ellipse.secr: Confidence ellipse

Description

Plot joint confidence ellipse for two parameters of secr model

Usage

ellipse.secr(object, par = c("g0", "sigma"), alpha = 0.05,
    npts = 100, plot = TRUE, linkscale = TRUE, add = FALSE,
    col = palette(), ...)

Arguments

object
secr object output from secr.fit
par
character vector of length two, the names of two `beta' parameters
alpha
alpha level for confidence intervals
npts
number of points on perimeter of ellipse
plot
logical for whether ellipse should be plotted
linkscale
logical; if FALSE then coordinates will be backtransformed from the link scale
add
logical to add ellipse to an existing plot
col
vector of one or more plotting colours
...
arguments to pass to plot functions

Value

  • A list containing the x and y coordinates is returned invisibly

Details

A confidence ellipse is calculated from the asymptotic variance-covariance matrix of the beta parameters (coefficients), and optionally plotted. If linkscale == FALSE, the inverse of the appropriate link transformation is applied to the coordinates of the ellipse, causing it to deform. If object is a list of secr models then one ellipse is constructed for each model. Colours are recycled as needed.

Examples

Run this code
ellipse.secr(secrdemo.0)

Run the code above in your browser using DataLab