Learn R Programming

Publish (version 2017.10.24)

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.

Examples

Run this code
# NOT RUN {
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