Mean, standard deviation and quantiles of a normal mixture, per replicate
Source:R/vectorised_conjugate_inference.R
normal_mixture_summary.RdVectorised equivalent of summary() on an RBesT::mixnorm()
object. The mean and standard deviation are closed form. The quantiles invert
the mixture CDF by bisection, which runs on every replicate simultaneously;
RBesT instead calls uniroot once per mixture, at a looser tolerance.
Usage
normal_mixture_summary(weights, means, sds, probs = c(0.025, 0.5, 0.975))