cws: Corrected Welch-Satterthwaite Effective Degrees of Freedom

View source: R/cws.R

cwsR Documentation

Corrected Welch-Satterthwaite Effective Degrees of Freedom

Description

Calculates corrected effective degrees of freedom for a weighted sum of independent variance components.

Usage

cws(s2, nu, w = rep(1, length(s2)))

Arguments

s2

Numeric vector of estimated variance components.

nu

Numeric vector of component degrees of freedom.

w

Numeric vector of positive weights.

Value

A single numeric corrected effective degrees of freedom, or NA_real_ when the denominator is zero.

Examples

cws(c(2, 3), c(10, 20))
cws(c(2, 3), c(10, 20), c(1, 2))

correctedWS documentation built on Nov. 23, 2026, 5:08 p.m.