[R] R formula language---a min and max function?

ivo welch ivowel at gmail.com
Tue May 4 21:33:06 CEST 2010


Dear R experts---I would like to estimate a non-linear least squares
expression that looks something like

   y ~ a+b*min(c,x)

where a, b, and c are the three parameters.  how do I define a min
function in the formula language of R?  advice appreciated.

sincerely,

/iaw



More information about the R-help mailing list