pval_t: P-value for proposed mean of a population (unknown sigma)

Description Usage Arguments Value Examples

View source: R/pval_t.R

Description

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

Usage

1
pval_t(x, s, n, mu, side = c("two", "one"))

Arguments

x

Sample mean

s

Sample 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 <- 6.14
s <- 0.803
n <- 9
mu <- 7
pval_t(x, s, n, mu)

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