altnegLL | R Documentation |
altnegLL calculates negLL using the simplification from Haddon (2011) using the ssq calculated within the function spm
altnegLL(inp, indat)
inp |
a vector of model parameters (r,K,Binit) |
indat |
a matrix with at least columns 'year', 'catch', and 'cpue' |
a single value the negative log-likelihood
## Not run:
data(dataspm)
fish <- dataspm$fish
head(fish,15)
colnames(fish) <- tolower(colnames(fish))
pars <- c(r=0.242,K=5170,Binit=2840)
altnegLL(pars,fish) # should be -12.1249
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.