Description Usage Arguments Details Value Author(s) References See Also Examples
Predict values based on logistic function fits.
1 2 |
object |
an oject as returned by |
newdata |
data.frame of predictor variables |
... |
further arguments (not used) |
No details.
a vector of predicted values
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
No reference.
1 2 3 4 5 6 7 8 9 | x <- 1:1000
y <- Logistic(c(1, 0.01, 500), x) + rnorm(1000, 0, 0.01)
plot(x, y)
fit <- FitLogistic(x, y)
lines(x, fit$predicted, col="red")
newdata <- data.frame(x=-500:1000)
pred <- predict(fit, newdata)
plot(newdata$x, pred)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.