Displaying 1 result from an estimated 1 matches for "xstim".
Did you mean:
estim
2003 Nov 25
1
problem plotting curve through data
I'm having trouble plotting a curve (basically a dose-response
function) through a set of data.
I have created a dataframe (df) of Stimulus Intensities (xstim) and
Normalized Responses (yresp), and I've used nls() to calculate a nonlinear
regression, like so:
--------------------
> f <- yresp ~ xstim^n / (xstim^n + B^n)
> starts <- list(n=.6, B=11)
> myfit <- nls(formula=f, data=df, start = starts)
>myfit
Nonlinear regression...