predict2 {BeeGUTS} | R Documentation |
Predict method for beeSurvFit
objects
Description
This is an updated predict
method for the beeSurvFit
class. It predict the survival over time for the concentration profiles entered by the user.
No concentration reconstructions are performed here. Functions odeGUTS::predict_ode()
from the morse
package is used. This might be changed in a future update
Usage
predict2(
object,
dataPredict,
userhb_value = 0,
calib_hb = FALSE,
ndatahb = 1,
...
)
Arguments
object |
An object of class |
dataPredict |
Data to predict in the format as a dataframe containing the following column:
|
userhb_value |
User defined background mortality rate parameter.
If a single value is provided, a single fixed value is used. If an array of
two elements is give, the first element is the |
calib_hb |
Logical argument. If |
ndatahb |
Used in combination with |
... |
Additional arguments to be parsed to the |
Value
A beeSurvPred
object containing the results of the forwards prediction
Examples
dataPredict <- data.frame(time = c(1:5, 1:15),
conc = c(rep(5, 5), rep(15, 15)),
replicate = c(rep("rep1", 5), rep("rep2", 15)))
data(fitBetacyfluthrin_Chronic)
prediction <- predict2(fitBetacyfluthrin_Chronic, dataPredict)