pwpop(abund = NULL, year = NULL, periods = NULL, Cs = NULL,
startR = NULL, upperR = NULL, lowerR = NULL, graph = TRUE)
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