corr: Correlation Coefficient

Description Usage Arguments Details References Examples

Description

Provides magnitude-based inferences upon given r value and sample size. Based upon WG Hopkins Microsoft Excel spreadsheet.

Usage

1
corr(r, n, conf.int = 0.9, swc = 0.1, plot = FALSE)

Arguments

r

correlation coefficient

n

sample size

conf.int

(optional) confidence level of the interval. Defaults to 0.90

swc

(optional) number indicating smallest worthwhile change. Defaults to 0.1

plot

(optional) logical indicator specifying to print associated plot. Defaults to FALSE

Details

Refer to vignette for further information.

References

Hopkins WG. (2007). A spreadsheet for deriving a confidence interval, mechanistic inference and clinical inference from a p value. Sportscience 11, 16-20. sportsci.org/2007/wghinf.htm

Examples

1
corr(.40, 25, 0.95)

Example output

   Correlation Coefficient:
   r = 0.4
   n = 25
   95% CI [0.01, 0.69]

   Magnitude-Based Inference 

        Very Unlikely Unlikely  Likely    
        "Negative"    "Trivial" "Positive"
MBI (%) "0.7"         "5.8"     "93.5"    

Inference: Likely Moderate Positive Correlation.

mbir documentation built on May 1, 2019, 10:11 p.m.