Title
Calculates the parameters of a Beta distribution given the mean and varian > ce
Syntax
betaprior [, options]
options Description ------------------------------------------------------------------------- Main mean(#) specifies the mean of the required Beta distribution. variance(#) specifies the variance of the required Beta distribution. graph specifies that a graph of the distribution be produced. -------------------------------------------------------------------------
Description
The command betaprior calculates the two parameters for a Beta distribution given specified values for the mean and variance.
Options
+------+ ----+ Main +-------------------------------------------------------------
mean(#) specifies the mean of the required Beta distribution. The default value is 0.2.
variance(#) specifies the variance of the required Beta distribution. The default value is 0.1.
graph specifies that a graph of the distribution be produced.
Examples
To find the parameters of the Beta distribution with a mean 0.4 and variance of 0.2
betaprior, m(0.4) v(0.2) g
Author
Adrian Mander, MRC Biostatistics Unit, Cambridge, UK.
Email adrian.mander@mrc-bsu.cam.ac.uk