| DiscreteTestResultsSummary | R Documentation |
This is the class used by DiscreteTests for summarising
DiscreteTestResults objects. It contains the summarised objects itself, as
well as a summary data frame as private members. Both can be read by public
methods.
new()Creates a new summary.DiscreteTestResults object.
DiscreteTestResultsSummary$new(test_results)
test_resultsthe DiscreteTestResults class object to be
summarised.
get_test_results()Returns the underlying DiscreteTestResults object.
DiscreteTestResultsSummary$get_test_results()
A DiscreteTestResults R6 class object.
get_summary_table()Returns the summary table of the underlying DiscreteTestResults object.
DiscreteTestResultsSummary$get_summary_table()
A data frame.
print()Prints the summary.
DiscreteTestResultsSummary$print(...)
...further arguments passed to print.data.frame.
Prints a summary table of the tested null hypotheses. The object itself is invisibly returned.
clone()The objects of this class are cloneable with this method.
DiscreteTestResultsSummary$clone(deep = FALSE)
deepWhether to make a deep clone.
# binomial tests
obj <- binom.test.pv(0:5, 5, 0.5)
# create DiscreteTestResultsSummary object
res <- DiscreteTestResultsSummary$new(obj)
# print summary
print(res)
# extract summary table
res$get_summary_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.