powered by
Find mean of a probability density function
dist_mean(dist, l = attr(dist, "limits")[1], r = attr(dist, "limits")[2])
A one-argument function returned from update_prior()
update_prior()
Lower bound of the density's support
Upper bound of the density's support
A scalar
# NOT RUN { d1 <- update_prior(10, 40, P = 5/6, prior = stats::dunif) dist_mean(d1) # }
Run the code above in your browser using DataLab