Learn R Programming

Publish (version 2023.01.17)

publish.htest: Pretty printing of test results.

Description

Pretty printing of test results.

Usage

# S3 method for htest
publish(object, title, ...)

Arguments

object

Result of t.test or wilcox.test

title

Decoration also used to name output

...

Used to transport arguments ci.arg and pvalue.arg to subroutines format.pval and formatCI. See also prodlim::SmartControl.

Author

Thomas A. Gerds <tag@biostat.ku.dk>

Examples

Run this code
data(Diabetes)
publish(t.test(bp.2s~gender,data=Diabetes))
publish(wilcox.test(bp.2s~gender,data=Diabetes))
publish(with(Diabetes,t.test(bp.2s,bp.1s,paired=TRUE)))
publish(with(Diabetes,wilcox.test(bp.2s,bp.1s,paired=TRUE)))

Run the code above in your browser using DataLab