r.correl: r to Coefficient of Determination (R2) from F

Description Usage Arguments Details Value Examples

Description

This function displays transformation from r to r2 to calculate the non-central confidence interval for r2 using the F distribution.

Usage

1
r.correl(r, n, a = 0.05)

Arguments

r

correlation coefficient

n

sample size

a

significance level

Details

The t-statistic is calculated by first dividing one minus the square root of r squared by degrees of freedom of the error. r is divided by this value.

t = r / sqrt((1 - rsq) / (n - 2))

The F-statistic is the t-statistic squared.

Fvalue = t ^ 2

Learn more on our example page.

Value

Provides correlation coefficient and coefficient of determination with associated confidence intervals and relevant statistics.

r

correlation coefficient

rlow

lower level confidence interval r

rhigh

upper level confidence interval r

R2

coefficient of determination

R2low

lower level confidence interval of R2

R2high

upper level confidence interval of R2

se

standard error

n

sample size

dfm

degrees of freedom of mean

dfe

degrees of freedom of error

t

t-statistic

F

F-statistic

p

p-value

estimate

the r statistic and confidence interval in APA style for markdown printing

estimateR2

the R^2 statistic and confidence interval in APA style for markdown printing

statistic

the t-statistic in APA style for markdown printing

Examples

1
2
3
4
5
6
7
#This example is derived from the mtcars dataset provided in R.

#What is the correlation between miles per gallon and car weight?

cor.test(mtcars$mpg, mtcars$wt)

r.correl(r = -0.8676594, n = 32, a = .05)

MOTE documentation built on May 2, 2019, 5:51 a.m.