spict icon indicating copy to clipboard operation
spict copied to clipboard

no likprof from fit.spict()

Open xameno opened this issue 6 years ago • 1 comments

Function fit.spict() does not return result regarding likelihood profiles (likprof). The latter is needed from function likprof.spict().

xameno avatar Aug 13 '19 11:08 xameno

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)

alko989 avatar Sep 27 '19 15:09 alko989