Description Usage Arguments Value Note Examples
This method calculates the mean for every time value over all simulations.
1 2 3 4 5 |
x |
object of class |
... |
additional arguments passed to |
data.frame with calculated mean values
Methods mean.multSim
and mean.multSimCsv
can lead to
slightly different results. The reason for this is that the simulation results
created by multSimCsv
are stored with a fewer number of digits.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(simplePdmp)
sim <- multSim(simplePdmp, seeds = 1:10)
mean(sim)
# handling NA values:
sim$outputList[[1]][1,2] <- NA
sim$outputList <- c(sim$outputList, NA) # will be removed before calculation
head(mean(sim))
head(mean(sim, na.rm = TRUE))
# Methods mean.multSim and mean.multSimCsv
# can lead to slightly different results:
sim2 <- multSimCsv(simplePdmp, seeds = 1:10)
all.equal(mean(sim), mean(sim2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.