pval_z: P-value for proposed mean of a population (known sigma)

Description Usage Arguments Value Examples

View source: R/pval_z.R

Description

Calculates the p-value for a proposed mean for a population with known standard deviation, using the Z-statistic (normal distribution).

Usage

1
pval_z(x, sig, n, mu = 0, side = c("two", "one"))

Arguments

x

Sample mean

sig

Population standard deviation

n

Sample size

mu

Population mean

side

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

Value

P-value

Examples

1
2
3
4
5
x <- 2.6
sig <- 0.3
n <- 36
mu <- 2.5
pval_z(x, sig, n, mu)

maxgav13/GMisc documentation built on June 1, 2018, 11:08 a.m.