predict.FitLogistic {ModelDataComp} | R Documentation |
Predict values based on logistic function fits.
## S3 method for class 'FitLogistic' predict(object, newdata, ...)
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.
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)