ci_r: Creates a confidence interval for the correlation.

View source: R/confidence_intervals.R

ci_rR Documentation

Creates a confidence interval for the correlation.

Description

Creates a confidence interval for the correlation.

Usage

ci_r(r, df, fixed = FALSE, conf = 0.95, iter = 50)

Arguments

r

The estimated correlation or partial correlation.

df

The degrees of freedom.

fixed

Specifies whether the variable in the regression model is fixed or random. The default is for random predictor.

conf

The desired (1-α) confidence level. Default is .95.

iter

Number of iterations for the stochastic approximation optimization. Default is 50.

Value

Returns the lower and upper endpoints of the confidence interval.


jbiesanz/fabs documentation built on July 15, 2022, 11:02 p.m.