
Last chance! 50% off unlimited learning
Sale ends in
SimTest
", used to test a value against its distribution under a simulated null hypothesis.as.SimTest(RealValue, SimulatedValues)
is.SimTest(x)
## S3 method for class 'SimTest':
plot(x, Quantiles = c(0.025, 0.975), ...,
colValue = "red",lwdValue = 2, ltyValue = 2,
colQuantiles = "black", lwdQuantiles = 1, ltyQuantiles = 2)
## S3 method for class 'SimTest':
summary(object, Quantiles = c(0.025, 0.975), ...)
SimTest
object to be summarized.SimTest
objects are lists containing:is.SimTest
returns TRUE
if the object is of class SimTest
.
summary.SimTest
returns a summary of the object, including the empirical quantile of the real value in the simulated distributon.SimTest
objects can be plotted and summarized.# Set the value to test
Real <- 0.8
# Is it a realization of a Gaussian distribution?
Sims <- rnorm(1000)
# Make a Simtest object
st <- as.SimTest(Real, Sims)
plot(st)
summary(st)
Run the code above in your browser using DataLab