nls.predict | R Documentation |
Predict partial residuals from an nls object to be plotted with plot.fit
nls.predict(func, object, newdata = NULL, xrange = 150)
func |
formula of |
object |
and nls object |
newdata |
optional dataset to simulate across. Needs the elements required to create the prediction |
xrange |
number of equal-spaced x covariate values created from |
a graph or a multi-level list with observed and predicted output (class c('nlsfit','fit','list')
)
plot.fit
, nlme.predict
DNase1 <- subset(DNase, Run == 1)
## using a selfStart model
fm1DNase1 <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase1)
summary(fm1DNase1)
fm1DNase1.predict = nls.predict(density ~ conc,object = fm1DNase1)
plot(fm1DNase1.predict)
fm1DNase1.predict = nls.predict(density ~ conc,object = fm1DNase1)
plot(fm1DNase1.predict, logX = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.