htest-helpers | R Documentation |
htest
objectsFunctions to help interpret or display objects of the class htest
df_htest(htest, test_statistics = TRUE, show_ci = TRUE, extract_names = TRUE)
describe_htest(htest, alpha = NULL, digits = 3)
htest |
A S3 object of the class |
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 |
alpha |
alpha level (default = 0.05) |
digits |
integer indicating the number of decimal places. |
Other htest:
as_htest()
,
simple_htest()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.