[R] S curve via R

Johannes Hüsing johannes at huesing.name
Wed Jul 26 08:21:17 CEST 2006


> Hello sir:
> How can I get "S curve" function via R?
> For SPSS,the function is:y=exp(b0+b1/x)
>

I am not sure if this is the answer you want, but

Scurve <- function(x, b0=0, b1=1) {
    exp(b0+b1/x)
}

should do what you request.

Greetings


Johannes



More information about the R-help mailing list