spict
spict copied to clipboard
no likprof from fit.spict()
Function fit.spict() does not return result regarding likelihood profiles (likprof). The latter is needed from function likprof.spict().
Sorry about the late reply @xameno .
I haven't used the function myself, but from the documentation you have to create the fit$likprof list yourself that at least includes the parameters (´pars´) and their range (´parrange´). This is the example from `?likprof.spict´:
data(pol)
inp <- pol$albacore
inp$likprof <- list()
inp$likprof$pars <- 'logK'
inp$likprof$parrange <- c(log(80), log(400))
inp$likprof$nogridpoints <- 15
rep <- fit.spict(inp)
rep <- likprof.spict(rep)
plotspict.likprof(rep, logpar=TRUE)