# NOT RUN {
data(abdat) # spm is used inside plotspmmod
pars <- log(c(0.35,7800,3500,0.05))
ans <- plotspmmod(pars,abdat) #not fitted, just guessed
bestSP <- fitSPM(pars=pars,fish=abdat,funk=simpspm)
outfit(bestSP) # best fitting estimates
ans <- plotspmmod(bestSP$estimate,abdat,schaefer=TRUE)
str(ans)
# }
Run the code above in your browser using DataLab