# p: Compute _p_ value. In bruceR: Broadly Useful Convenient and Efficient R Functions

Compute p value.

## Usage

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23``` ```p( z = NULL, t = NULL, f = NULL, r = NULL, chi2 = NULL, n = NULL, df = NULL, df1 = NULL, df2 = NULL, digits = 2, nsmall = digits ) p.z(z) p.t(t, df) p.f(f, df1, df2) p.r(r, n) p.chi2(chi2, df) ```

## Arguments

 `z, t, f, r, chi2` z, t, F, r, χ^2 value. `n, df, df1, df2` Sample size or degree of freedom. `digits, nsmall` Number of decimal places of output. Default is `2`.

## Value

p value statistics.

## Functions

• `p.z`: Two-tailed p value of z.

• `p.t`: Two-tailed p value of t.

• `p.f`: One-tailed p value of F. (Note: F test is one-tailed only.)

• `p.r`: Two-tailed p value of r.

• `p.chi2`: One-tailed p value of χ^2. (Note: χ^2 test is one-tailed only.)

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11``` ```p.z(1.96) p.t(2, 100) p.f(4, 1, 100) p.r(0.2, 100) p.chi2(3.84, 1) p(z=1.96) p(t=2, df=100) p(f=4, df1=1, df2=100) p(r=0.2, n=100) p(chi2=3.84, df=1) ```

bruceR documentation built on June 22, 2021, 1:06 a.m.