predict.networkModel {isotracer} | R Documentation |
Add a column with predictions from a fit
Description
Add a column with predictions from a fit
Usage
## S3 method for class 'networkModel'
predict(
object,
fit,
draws = NULL,
error.draws = 5,
probs = 0.95,
cores = NULL,
dt = NULL,
grid_size = NULL,
at = NULL,
end = NULL,
...
)
Arguments
object |
Network model |
fit |
Model fit (mcmc.list object) |
draws |
Integer, number of draws from the posteriors |
error.draws |
Integer, number of draws from the error distribution, for a given posterior draw. |
probs |
Credible interval (default 0.95). |
cores |
Number of cores to use for parallel calculations. Default is
|
dt , grid_size |
Time step size or grid points, respectively. |
at |
Timepoints at which the predictions should be returned. |
end |
Final timepoint used in the projections. |
... |
Not used. |
Value
A network model object with an added column "prediction"
.
[Package isotracer version 1.1.6 Index]