plot_poisson_likelihood {bayesrules} | R Documentation |
Plot a Poisson Likelihood Function
Description
Plots the Poisson likelihood function for variable \lambda
given a vector of Poisson counts y.
Usage
plot_poisson_likelihood(y, lambda_upper_bound = 10)
Arguments
y |
vector of observed Poisson counts |
lambda_upper_bound |
upper bound for lambda values to display on x-axis |
Value
a ggplot of Poisson likelihood
Examples
plot_poisson_likelihood(y = c(4, 2, 7), lambda_upper_bound = 10)
[Package bayesrules version 0.0.2 Index]