Learn R Programming

UsingR (version 2.0-7)

baycheck: Population estimate of type of Bay Checkerspot butterfly

Description

Estimates of the population of a type of Bay Checkerspot butterfly near San Francisco.

Usage

data(baycheck)

Arguments

Format

A data frame with 27 observations on the following 2 variables.

year

a numeric vector

Nt

estimated number

Examples

Run this code
# NOT RUN {
data(baycheck)
plot(Nt ~ year,baycheck)
## fit Ricker model N_{t+1} = N_t e^{-rt}W_t
n = length(baycheck$year)
yt = with(baycheck,log(Nt[-1]/Nt[-n]))
nt = with(baycheck,Nt[-n])
lm(yt ~ nt,baycheck)
# }

Run the code above in your browser using DataLab