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: logistic.sum.squares

Function Description: logistic.sum.squares

Sets a prediction based on a generalized logistic, then returns the sum of squared deviations

Function Arguments:

ArgumentDefault Value
param
x
obs

Function Source:

logistic.sum.squares=function(param,x,obs)
{
pred=gen.logistic(x,param)
if(length(which(pred<1e-5))>0) pred=rep(0,length(x))

return(sum((obs-pred)^2))
}