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 <[email protected]> [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)

ModelDataComp documentation built on May 31, 2017, 1:35 a.m.