R/pval_chisq.R
pval_chisq.Rd
Calculates the p-value for a proposed standard deviation (variance) of a population (ChiSquare distribution).
pval_chisq(s, n, sigma, side = c("two", "one"))
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") |
P-value
s <- 0.535 n <- 10 sig <- 1 pval_chisq(s, n, sig)#> [1] 0.0425