predict.beeSurvFit {BeeGUTS}R Documentation

Predict method for beeSurvFit objects

Description

This is the generic predict S3 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

## S3 method for class 'beeSurvFit'
predict(object, dataPredict, ...)

Arguments

object

An object of class beeSurvFit

dataPredict

Data to predict in the format as a dataframe containing the following column:

  • time: A vector of time in days

  • conc: A vector of number of survivors of same length

  • replicate A vector replicate name

...

Additional arguments to be parsed to the predict.survFit method from odeGUTS (e.g. mcmc_size = 1000 is to be used to reduce the number of mcmc samples in order to speed up the computation. mcmc_size is the number of selected iterations for one chain. Default is 1000. If all MCMC is wanted, set argument to NULL. hb_value = FALSE the background mortality hb is set to a fixed value. If TRUE, parameter hb taken from the posterior (only works if one hb value was estimated. The default is FALSE. hb_valueFORCED = 0 hb_valueFORCED If hb_value is FALSE, it fix hb. The default is 0

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 <- predict(fitBetacyfluthrin_Chronic, dataPredict)


[Package BeeGUTS version 1.1.3 Index]