r_prec: Compute Precision Analyses for Correlations This approach...

Description Usage Arguments Value Examples

View source: R/r_prec.R

Description

Compute Precision Analyses for Correlations This approach simply loops a function from MBESS

Usage

1
r_prec(r, nlow, nhigh, ci = 0.95, by = 1)

Arguments

r

Correlation

nlow

starting sample size

nhigh

ending sample size

ci

Type of Confidence Interval (e.g., .95)

by

Incremental increase in sample (e.g. nlow = 10, nhigh = 24, by = 2, produces estimates of 10, 12, and 14)

Value

Precision Analyses for Correlations

Examples

1
r_prec(r=.3, nlow=80, nhigh=400, by=20, ci=.95)

Example output

     n   r     LL     UL Precision
1   80 0.3 0.0859 0.4876    0.4016
2  100 0.3 0.1101 0.4688    0.3587
3  120 0.3 0.1276 0.4548    0.3272
4  140 0.3 0.1411 0.4438    0.3027
5  160 0.3 0.1519 0.4349    0.2830
6  180 0.3 0.1608 0.4275    0.2667
7  200 0.3 0.1683 0.4212    0.2529
8  220 0.3 0.1747 0.4158    0.2411
9  240 0.3 0.1802 0.4110    0.2308
10 260 0.3 0.1851 0.4068    0.2217
11 280 0.3 0.1894 0.4030    0.2136
12 300 0.3 0.1933 0.3997    0.2063
13 320 0.3 0.1968 0.3966    0.1998
14 340 0.3 0.2000 0.3938    0.1938
15 360 0.3 0.2029 0.3912    0.1883
16 380 0.3 0.2056 0.3889    0.1833
17 400 0.3 0.2081 0.3867    0.1786

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.