tor_predict | R Documentation |
tor_predict()
The function provides the predicted M and 95% credible interval
boundaries at a defined Ta given a certain model, in euthermic and/or torpid state.
tor_predict(tor_obj, Ta, CI = TRUE)
tor_obj |
a fitted model from |
Ta |
a vector of temperature |
CI |
whether or not to compute prediction intervals (default = TRUE, which reduces the speed of computation noticeably for large jobs) |
Note that the predictions are computed slightly differently depending on whether one uses CI = TRUE
or CI = FALSE
.
In the former case (the default), for each value of Ta, one prediction is computed for every single iteration of the posteriors and the median value of these predictions is then computed.
In the latter case, for each value of Ta, a single prediction is directly computed by assuming that parameters equate their median values from the corresponding posterior distribution.
a data.frame
Other predict:
eut_predict_fun()
,
tor_assign()
,
tor_predict_fun()
## Not run:
test_mod <- tor_fit(M = test_data2[,2],
Ta = test_data2[, 1],
fitting_options = list(nc = 1, nb = 3000, ni = 5000))
tor_predict(test_mod, Ta = 10:35)
tor_predict(test_mod, Ta = 10:35, CI = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.