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: fit.logistic

Function Description: fit.logistic

A function to fit a set of data y, observed at the vector x, to a generalized logistic function, using least squares.

Function Arguments:

ArgumentDefault Value
x
y
start.param
tech"Nelder-Mead"

Function Source:

fit.logistic=function(x,y,start.param,tech="Nelder-Mead")
{
fit=optim(start.param,logistic.sum.squares,x=x,obs=y,method=tech,control=list(maxit=50000))

return(fit)
}