pwpop(abund = NULL, year = NULL, periods = NULL, Cs = NULL, startR = NULL, upperR = NULL, lowerR = NULL, graph = TRUE)
log(N2,t)=log(N1,0)+C1*(log(R1)-log(R2))+log(R2)*t for t>=C1 and t log(N3,t)=log(N1,0)+C1*(log(R1)-log(R2))+C2*(log(R2)-log(R3))+log(R3)*t for t>=C2 The parameters estimated for these models are log(N1,0), log(R1), C1, log(R2), C2, and log(R3). t is time starting at 1
for the first year of abundance and ending at x for the last year of abundance(year information is still needed for
plotting). Entered Cs value are converted to the same scale as t. Back-transform the log(R) values using exp
to obtain the R values for each period. The function optim
is used to obtain parameter estimates and associated
standard errors by minimizing the sum of squares (log(N)-log(pred))^2. Add first year-1 to each C to put estimates on year scale.
data(counts)
pwpop(abund = counts$number, year = counts$year,periods = 3, Cs = c(2000,2005),
startR = c(0.5,0.5,0.5),
upperR = c(10,10,10),
lowerR = c(-10,-10,-10))
Run the code above in your browser using DataLab