parse_rstat: parse_rstat

Description Usage Arguments Examples

View source: R/phfuncs_func.R

Description

This function parses and formats an r statistic.

Usage

1
parse_rstat(rstat, method = "pearson")

Arguments

rstat

cor.test object

method

Type of correlation. Defaults to Pearson.

Examples

1
2
rstat <- cor.test(rnorm(100, 0, 1), rnorm(100, 0, 1))
parse_rstat(rstat)

philipphoman/phfuncs documentation built on Oct. 11, 2018, 12:25 a.m.