powered by
Return the posterior mean, median and variance of power parameter for PN distribution
pn.bayes(x,prior= "Jeffreys", shape_0 = NULL, rate_0 = NULL)
the response vector
the prior distribution of power parameter: "Jeffreys" (default), "Uniform" and "Gamma"
shape and rate hyperparameters of the gamma distribution.
Agamez-Montavo, G. (2017). Modelos de mistura finita usando a classe de distribuicoes alpha potencia. Thesis (Doctoral), University of Sao Paulo.
# NOT RUN { x <- rpn(100, 25) pn.bayes(x) pn.bayes(x, prior = 'Uniform') pn.bayes(x, prior = 'Gamma', 1/100, 1/100) # }
Run the code above in your browser using DataLab