Learn R Programming

TOSTER (version 0.8.3)

htest-helpers: 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

Run this code
# 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)

Run the code above in your browser using DataLab