Re: [R] S curve via R

From: Johannes Hüsing <johannes_at_huesing.name>
Date: Wed 26 Jul 2006 - 16:21:17 EST

> 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Jul 26 16:31:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 26 Jul 2006 - 18:18:18 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.