chi_var_ci_no_data: Compute Confidence Interval for Variance Without Raw Data

View source: R/Chi_Var_ci_no_data.R

chi_var_ci_no_dataR Documentation

Compute Confidence Interval for Variance Without Raw Data

Description

This function calculates the confidence interval for variance when only + the sample variance and sample size are known.

Usage

chi_var_ci_no_data(s2_given, n_given, conf_level)

Arguments

s2_given

Numeric. The sample variance.

n_given

Integer. The sample size.

conf_level

Numeric. The confidence level (e.g., 0.95 for 95% CI).

Value

A numeric vector with the lower and upper bounds of the confidence interval.

Examples

s2_given <- 21.5   # Sample variance
n_given <- 26      # Sample size
conf_level <- 0.98 # 98% confidence level
chi_var_ci_no_data(s2_given, n_given, conf_level)

StatTools documentation built on April 12, 2025, 1:17 a.m.