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: minum.beta.normal

Function Description: minum.beta.normal

Function to be minimized for fitting normal to beta.

Function Arguments:

ArgumentDefault Value
param
x
y

Function Source:

minum.beta.normal=function(param,x,y)
{
pred=dnorm(x,mean=param[1],sd=param[2])
dev=(y-pred)

return(sum(dev^2))
}