likelihood_map {alien} | R Documentation |
Plot log-likelihood space
Description
Plot a filled-contour heatmap displaying the log-likelihood space calculated using likelihood_space
.
Usage
likelihood_map(likelihood_space, x, y, delta = 10)
Arguments
likelihood_space |
a data frame resulting from a call to |
x |
a string specifying the parameter to be plotted on the x-axis. |
y |
a string specifying the parameter to be plotted on the y-axis. |
delta |
the range of log-likelihood values of which different color codes will be plotted. Defaults to 10. |
Value
#' A ggplot
plot with the corresponding type of plot.
Examples
if (FALSE){ # takes a while to finish
example_model <- snc(sfestuary)
estimates <- example_model$coefficients$Estimate
likelihood_space <- likelihood_space(y = sfestuary, centers = estimates,
ranges = 1.5, steps_from_center = 10,
calculate = TRUE)
likelihood_map(likelihood_space, "beta0", "beta1", 10)
}
[Package alien version 1.0.2 Index]