chi_var_ci_no_data {StatTools}R 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)

[Package StatTools version 0.1.1 Index]