Learn R Programming

report (version 0.1.0)

model_text.htest: h-test (Correlation, t-test...) Report

Description

Create a report of an h-test object.

Usage

# S3 method for htest
model_text(model, interpretation = "funder2019", ...)

# S3 method for htest report(model, interpretation = "funder2019", ...)

Arguments

model

Object of class htest.

interpretation

Effect size interpretation set of rules (see interpret_d and interpret_r).

...

Arguments passed to or from other methods.

Value

A list with elements of class report_text (which are character vectors), containing a short and long version of the textual output of the model summary.

See Also

table_short or text_short to access the related content of the report-object.

Examples

Run this code
# NOT RUN {
report(cor.test(iris$Sepal.Width, iris$Sepal.Length, method = "spearman"))
report(cor.test(iris$Sepal.Width, iris$Sepal.Length, method = "pearson"))
report(t.test(iris$Sepal.Width, iris$Sepal.Length))
report(t.test(iris$Sepal.Width, iris$Sepal.Length, var.equal = TRUE))
report(t.test(mtcars$mpg ~ mtcars$vs))
report(t.test(iris$Sepal.Width, mu = 1))

# }

Run the code above in your browser using DataLab