se_sig | R Documentation |
Computes the one-sided confidence level, defined as (1 - p-value) x 100, for testing whether each mean (mu
) differs from zero under a normal approximation.
se_sig(muvari)
muvari |
Numeric array, of mean (location) values, variances corresponding to each |
For each element:
Calculate the standard error: se = sqrt(vari).
Compute the absolute z-score: z = abs(mu / se).
The one-sided p-value is 1 - phi(z), where phi is the CDF of the standard normal.
The confidence level is (1 - p-value) x 100 = phi(z) x 100.
A numeric vector of confidence levels (0-100%), each rounded to one decimal place.
# Single value
se_sig(muvari = cbind(2,1))
# Vector of values
se_sig(muvari = cbind(c(-1, 0, 1),c(1, 2, 3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.