predict.lcx: Predict method for LCx fits

Description Usage Arguments Details Value

Description

Predict survival rates from a fitted LCx object.

Usage

1
2
3
## S3 method for class 'lcx'
predict(object, newdata, type = c("response", "adjusted",
  "link"), ...)

Arguments

object

An object of class lcx, obtained as the result of a call to lcx

newdata

Optionally, a data frame in which to look for variables with which to predict. If omitted, the fitted linear predictors are used.

type

The type of prediction required. If type="response" predictions include both the background mortality and the mortality due to the toxin, but if type="adjusted" predictions only reflect mortality due to the toxin.

...

Further arguments passed to or from other methods.

Details

If newdata is omitted the predictions are based on the data used for the fit. For type="adjusted", it is assumed there is no background mortality and predictions are made based purely on the mortality due to the toxin. For type="link", predictions are returned on the scale of the link function, again ignoring any background mortality.

Value

Return a vector of predicted survival fractions.


ahproctor/LC50 documentation built on May 12, 2019, 2:31 a.m.