predict.FitLogistic: Predict method for logistic function fits

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Predict values based on logistic function fits.

Usage

1
2
## S3 method for class 'FitLogistic'
predict(object, newdata, ...)

Arguments

object

an oject as returned by FitLogistic

newdata

data.frame of predictor variables

...

further arguments (not used)

Details

No details.

Value

a vector of predicted values

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

References

No reference.

See Also

FitLogistic

Examples

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)


Search within the ModelDataComp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.