Description Usage Arguments Value Examples
This method transforms objects of class multSim
or multSimCsv
into a specific data.frame of class multSimData
. Most plot method
of package pdmpsim are based on this class. The data.frame has five
columns:
time
for the time value,
seed
for the seed on which the simulation was created,
type
indicating if the variable is discrete or continous,
variable
for the name of the simulated variable,
value
for the simulated value.
Methods that use objects of class multSimData
as input are
plot
, plotSeeds
, plotTimes
,
plotStats
, hist
and density
.
1 2 3 4 5 6 7 8 9 10 | getMultSimData(x, times, seeds)
getMultSimData.multSim(x, times, seeds)
getMultSimData.multSimCsv(x, times, seeds)
getMultSimData.multSimData(x, times, seeds)
## S4 method for signature 'pdmpModel'
getMultSimData(x, times, seeds)
|
x |
an object of class |
times |
vector with specific time values for which the simulation results (for all seeds) shall appear in the data.frame |
seeds |
vector with specific seeds for which the simulation results (for all times) shall appear in the data.frame |
a data.frame of class multSimData
with simulation results.
1 2 3 4 | data("toggleSwitch")
ms <- multSim(toggleSwitch, seeds = 1:5)
d <- getMultSimData(ms, seeds = 1:3, times = c(5, 10))
print(d)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.