ci_beta: Creates a confidence interval for the standardized regression...

View source: R/confidence_intervals.R

ci_betaR Documentation

Creates a confidence interval for the standardized regression coefficient β.

Description

Creates a confidence interval for the standardized regression coefficient β.

Usage

ci_beta(t, df1, df2, r2, r2x, conf = 0.95, fixed = FALSE, iter = 50)

Arguments

t

The t-test for the standardized regression coefficient.

df1

The numerator degrees of freedom for the regression model.

df2

The denominator degrees of freedom for the regression model.

r2

The squared multiple correlation for the full regression model.

r2x

The coefficient of determination for the predictor of interest. This is the squared multiple correlation when the predictor of interest is predicted by all of the other variables in the regression model. 1 - tolerance.

conf

The desired (1-α) confidence level. The default is set to .95.

fixed

Specifies whether the predictors in the regression model are either fixed or random. The default is random predictors.

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.