Calculates the p-value for a proposed standard deviation (variance) of a population (ChiSquare distribution).

pval_chisq(s, n, sigma, side = c("two", "one"))

Arguments

s

Sample standard deviation

n

Sample size

sigma

Population standard deviation

side

To either get a two-tail or one-tail p-value (Default is "two")

Value

P-value

Examples

s <- 0.535 n <- 10 sig <- 1 pval_chisq(s, n, sig)
#> [1] 0.0425