compute_ci: Compute confidence intervals for regression coefficients

View source: R/fuzzy_inference.R

compute_ciR Documentation

Compute confidence intervals for regression coefficients

Description

Compute confidence intervals for regression coefficients

Usage

compute_ci(beta_hat, se_beta, df, alpha = 0.05)

Arguments

beta_hat

Numeric vector. Estimated regression coefficients.

se_beta

Numeric vector. Standard errors of coefficients.

df

Integer. Degrees of freedom.

alpha

Numeric. Significance level (default: 0.05).

Value

A list containing lower and upper bounds of confidence intervals.

Examples

beta_hat <- c(0.5, 1.2)  # Example regression coefficients
se_beta <- c(0.1, 0.2)  # Example standard errors
df <- 30  # Example degrees of freedom
ci <- compute_ci(beta_hat, se_beta, df)
print(ci)

flex documentation built on Sept. 2, 2025, 9:09 a.m.

Related to compute_ci in flex...