htest-helpers: Helpers for 'htest' objects

htest-helpersR Documentation

Helpers for htest objects

Description

Functions to help interpret or display objects of the class htest

Usage

df_htest(htest, test_statistics = TRUE, show_ci = TRUE, extract_names = TRUE)

describe_htest(htest, alpha = NULL, digits = 3)

Arguments

htest

A S3 object of the class htest

test_statistics

A logical variable to display the test statistics.

show_ci

A logical variable to display the confidence interval.

extract_names

A logical variable to take the names from the S3 object (i.e., statistic for t.test would be "t")

alpha

alpha level (default = 0.05)

digits

integer indicating the number of decimal places.

See Also

Other htest: as_htest(), simple_htest()

Examples

# simple example with t-test
tres = t.test(extra ~ group, data = sleep)

# As a data frame
df_htest(tres)

# Describe t-test results
describe_htest(tres)


TOSTER documentation built on Sept. 15, 2023, 1:09 a.m.