predict.FitLogistic {ModelDataComp}R Documentation

Predict method for logistic function fits

Description

Predict values based on logistic function fits.

Usage

## 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


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)


[Package ModelDataComp version 1.03 Index]