SimResults-class {simFrame} | R Documentation |
Class "SimResults"
Description
Class for simulation results.
Objects from the Class
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.
Slots
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 ofvalues
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, orNULL
.sampleControl
:Object of class
"OptSampleControl"
; the control object used for sampling in design-based simulation, orNULL
.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, orNULL
.
Accessor methods
getValues
signature(x = "SimResults")
: get slotvalues
.getAdd
signature(x = "SimResults")
: get slotadd
.getDesign
signature(x = "SimResults")
: get slotdesign
.getColnames
signature(x = "SimResults")
: get slotcolnames
.getEpsilon
signature(x = "SimResults")
: get slotepsilon
.getNArate
signature(x = "SimResults")
: get slotNArate
.getDataControl
signature(x = "SimResults")
: get slotdataControl
.getSampleControl
signature(x = "SimResults")
: get slotsampleControl
.getNrep
signature(x = "SimResults")
: get slotnrep
.getControl
signature(x = "SimResults")
: get slotcontrol
.getSeed
signature(x = "SimResults")
: get slotseed
.getCall
signature(x = "SimResults")
: get slotcall
.
Methods
aggregate
signature(x = "SimResults")
: aggregate simulation results.head
signature(x = "SimResults")
: returns the first parts of simulation results.plot
signature(x = "SimResults", y = "missing")
: selects a suitable graphical representation of the simulation results automatically.show
signature(object = "SimResults")
: print simulation results on the R console.simBwplot
signature(x = "SimResults")
: conditional box-and-whisker plot of simulation results.simDensityplot
signature(x = "SimResults")
: conditional kernel density plot of simulation results.simXyplot
signature(x = "SimResults")
: conditional x-y plot of simulation results.summary
signature(x = "SimResults")
: produce a summary of simulation results.tail
signature(x = "SimResults")
: returns the last parts of simulation results.
UML class diagram
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.
Note
There are no mutator methods available since the slots are not supposed to be changed by the user.
Furthermore, the slots dataControl
, sampleControl
, nrep
and control
were added in version 0.3.
Author(s)
Andreas Alfons
References
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. doi: 10.18637/jss.v037.i03.
See Also
runSimulation
, simBwplot
,
simDensityplot
, simXyplot
Examples
showClass("SimResults")