Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/distributions.r

View File Source Download File No help file available

Function: dbeta.reparam

Function Description: dbeta.reparam

This reparameterizes the beta distribution as a function of its mean and standard deviation. The mean must be between 0 and 1, and sd>0.

Function Arguments:

ArgumentDefault Value
x
mu
sd

Function Source:

dbeta.reparam=function(x,mu,sd)
{
a=(1-mu)*mu^2/(sd^2)
b=(a/mu)-a

return(dbeta(x,shape1=a,shape2=b))
}