R/normal.select.R

normal.select=function (quantile1, quantile2) 
{
    p1 = quantile1$p
    x1 = quantile1$x
    p2 = quantile2$p
    x2 = quantile2$x
    
    sigma=(x1-x2)/diff(qnorm(c(p2,p1)))
    mu=x1-sigma*qnorm(p1)

    return(list(mu=mu,sigma=sigma))
}

Try the LearnBayes package in your browser

Any scripts or data that you put into this service are public.

LearnBayes documentation built on May 1, 2019, 7:03 p.m.