Learn R Programming

wstdiff (version 1.0.0)

validate_approximation: Validate Welch-Satterthwaite Approximation

Description

Validates the approximation quality by comparing moments of the approximated distribution with the theoretical moments.

Usage

validate_approximation(ws_result, n_sim = 10000, seed = NULL)

Value

A list containing validation metrics

Arguments

ws_result

Result from any ws_tdiff function

n_sim

Number of simulations for validation (default: 10000)

seed

Random seed for reproducibility

Examples

Run this code
result <- ws_tdiff_univariate(0, 1, 10, 0, 1.5, 15)
validation <- validate_approximation(result)
print(validation)

Run the code above in your browser using DataLab