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: dgamma.meansd

Function Description: dgamma.meansd

Probability distribution of gamma, parameterized with mean and sd instead of shape and scale.

Function Arguments:

ArgumentDefault Value
x
mean
sd
logFALSE

Function Source:

dgamma.meansd=function(x,mean,sd,log=FALSE)
{
k=(sd^2)/mean
s=mean/k

return(dgamma(x,shape=s,scale=k,log=log))
}