Evaluation-class {distrTEst} | R Documentation |
When an estimator is used to data of the type "Dataclass" with the method evaluate, the result is an object of class "Evaluation".
Objects could be created by calls of the form new("Evaluation", name, filename, call.ev, result, estimator)
.
It does not seem to be very useful to generate a new object this way, however. Use "evaluate" with a Dataclass object!
name
:"character"
: the name of the Dataclass object, which was called by evaluate filename
:"character"
: the filename of the evaluated object call.ev
:"call.ev"
the call which created the object,
e.g. ``evaluate(Dataclassobject)'' result
:"vector"
: the result of the evaluation of the estimation on data estimator
:"OptionalFunction"
: estimation function used signature(object = "Evaluation")
: returns the call which created the object signature(object = "Evaluation")
: returns the estimator signature(object = "Evaluation")
: returns the filename signature(.Object = "Evaluation")
: initialize method signature(object = "Evaluation")
: returns the name of the data object signature(object = "Evaluation")
: returns the result signature(object = "Evaluation")
: returns a boxplot of the result signature(object = "Evaluation")
: returns the name of the data object, its filename, the estimator used
and the result signature(object = "Evaluation")
: saves the object in two files in the directory of R - one with
data, one without as comment file (see example) signature(object = "Evaluation")
: returns the name of the data object, its filename, the
estimator used and a statistical summary of the result The saved "evaluation" can be loaded with the usual load-command, the saved comment with the function cload.
Thomas Stabla Thomas.Stabla@uni-bayreuth.de,
Florian Camphausen Florian.Camphausen@uni-bayreuth.de,
Peter Ruckdeschel Peter.Ruckdeschel@uni-bayreuth.de,
Matthias Kohl Matthias.Kohl@stamats.de
Dataclass-class
Simulation-class
Contsimulation-class
load
cload
savedata-methods
plot-methods
simulate-methods
summary-methods
N <- Norm() # N is a standard normal distribution. C <- Cauchy() # C is a Cauchy distribution cs <- Contsimulation(filename = "csim", runs = 5, samplesize=5000, seed=setRNG(), distribution.id = N, distribution.c = C, rate = 0.1) simulate(cs) # Each of the 25000 random numbers is ideal (N-distributed) with # probability 0.9 and contaminated (C-distributed) with probability = 0.1 summary(cs) ev1 <- evaluate(cs, mean) # estimates the data with mean ev1 # bad results ev2 <- evaluate(cs,median) # estimates the data with median ev2 # better results because median is robust savedata(ev1) # saves the evaluation with result as "csim.mean" and without result as # "csim.mean.comment" in the working directory # of R - "csim" is the # filename of the Contsimulation object, mean the name of the estimator rm(ev1) cload("csim.mean") # loads the evaluation without result - the object is called ev1.comment ev1.comment load("csim.mean") # loads the evaluation with result ev1