Visualize likelihood profiles from MLE and/or MCMC estimation.
Usage
plot_profile(
obj,
x,
y = NULL,
xlab = NULL,
rescale = TRUE,
facet = FALSE,
transform = "none",
points = FALSE,
k = 5
)Arguments
- obj
A TMB model object.
- x
A
data.framecontaining MLE profile fromtmbprofile2.- y
A
data.framecontaining MCMC profile fromget_mcmc_profile(optional).- xlab
A
characterstring for x-axis label, default is the parameter name.- rescale
A
logicalindicating whether to rescale to the minimum negative log-likelihood value.- facet
A
logicalindicating whether to facet by likelihood components.- transform
A
characterspecifying transformation ("none", "exp", or "plogis").- points
A
logicalindicating whether to show MCMC posterior samples as points.- k
An
integerspecifying the number of basis functions for GAM smoothing.
