dist_mean {truelies} | R Documentation |
Find mean of a probability density function
dist_mean(dist, l = attr(dist, "limits")[1], r = attr(dist,
"limits")[2])
dist |
A one-argument function returned from |
l |
Lower bound of the density's support |
r |
Upper bound of the density's support |
A scalar
d1 <- update_prior(10, 40, P = 5/6, prior = stats::dunif)
dist_mean(d1)