Class for simulation results.
Objects can be created by calls of the form new("SimResults", …) or
SimResults(…).
However, objects are expected to be created by the function
runSimulation or clusterRunSimulation, these
constructor functions are not supposed to be called by the user.
values:Object of class "data.frame" containing the
simulation results.
add:Object of class "list" containing additional
simulation results, e.g., statistical models.
design:Object of class "character" giving the
variables (columns) defining the domains used in the simulation
experiment.
colnames:Object of class "character" giving the names
of the columns of values that contain the actual simulation
results.
epsilon:Object of class "numeric" containing the
contamination levels used in the simulation experiment.
NArate:Object of class "NumericMatrix" containing the
missing value rates used in the simulation experiment.
dataControl:Object of class "OptDataControl"; the
control object used for data generation in model-based simulation, or
NULL.
sampleControl:Object of class "OptSampleControl"; the
control object used for sampling in design-based simulation, or
NULL.
nrep:Object of class "numeric" giving the number of
repetitions of the simulation experiment (for model-based simulation or
simulation based on real data).
control:Object of class "SimControl"; the control
object used for running the simulations.
seed:Object of class "list" containing the seeds of
the random number generator before and after the simulation experiment,
respectively (for replication of the results).
call:Object of class "SimCall"; the function call
used to run the simulation experiment, or NULL.
getValuessignature(x = "SimResults"): get slot
values.
getAddsignature(x = "SimResults"): get slot
add.
getDesignsignature(x = "SimResults"): get slot
design.
getColnamessignature(x = "SimResults"): get slot
colnames.
getEpsilonsignature(x = "SimResults"): get slot
epsilon.
getNAratesignature(x = "SimResults"): get slot
NArate.
getDataControlsignature(x = "SimResults"): get slot
dataControl.
getSampleControlsignature(x = "SimResults"): get slot
sampleControl.
getNrepsignature(x = "SimResults"): get slot
nrep.
getControlsignature(x = "SimResults"): get slot
control.
getSeedsignature(x = "SimResults"): get slot
seed.
getCallsignature(x = "SimResults"): get slot
call.
aggregatesignature(x = "SimResults"): aggregate
simulation results.
headsignature(x = "SimResults"): returns the first
parts of simulation results.
plotsignature(x = "SimResults", y = "missing"):
selects a suitable graphical representation of the simulation results
automatically.
showsignature(object = "SimResults"): print
simulation results on the R console.
simBwplotsignature(x = "SimResults"): conditional
box-and-whisker plot of simulation results.
simDensityplotsignature(x = "SimResults"):
conditional kernel density plot of simulation results.
simXyplotsignature(x = "SimResults"): conditional x-y
plot of simulation results.
summarysignature(x = "SimResults"): produce a summary
of simulation results.
tailsignature(x = "SimResults"): returns the last
parts of simulation results.
A slightly simplified UML class diagram of the framework can be found in
Figure 1 of the package vignette An Object-Oriented Framework for
Statistical Simulation: The R Package simFrame. Use
vignette("simFrame-intro") to view this vignette.
Alfons, A., Templ, M. and Filzmoser, P. (2010) An Object-Oriented Framework for Statistical Simulation: The R Package simFrame. Journal of Statistical Software, 37(3), 1--36. 10.18637/jss.v037.i03.
# NOT RUN {
showClass("SimResults")
# }
Run the code above in your browser using DataLab