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: asymp.ht
Function Description: asymp.ht
The function from Sean Thomas which produces an asymptote for y as a function of x. Original version: y=ymax*(1-exp(-a*x^b)) This is the centered version, with x normalized by dividing by parameter k, which is the x value at which y is half ymax. This eliminates correlation between the a and b parameters in the above version, but not the correlation between parameters 1 and 2.Function Arguments:
| Argument | Default Value |
|---|---|
| x | |
| param | |
| ... |
Function Source:
asymp.ht=function(x,param,...)
{
ymax=param[1]
k=param[2]
b=param[3]
xcent=x/k
return(ymax*(1-2^(-xcent^b)))
}
{
ymax=param[1]
k=param[2]
b=param[3]
xcent=x/k
return(ymax*(1-2^(-xcent^b)))
}