sig.test: Significance level function

Description Usage Arguments Examples

Description

This function returns a critical value needed to calculate confidence intervals around the trend parameter given the Type I error rate and whether it is a one or two-tailed significance test.

Usage

1
sig.test(two.tailed, alpha)

Arguments

two.tailed

Set to TRUE for a two-tailed test, FALSE for a one-tailed test.

alpha

Set the type one error rate. Choose between 0.1, 0.05 and 0.01

Examples

1
2
3
4
5
6
7
8
9
#Return the critical value for a two-tailed test with a significance level of 0.05
two.tailed <- TRUE
alpha <- 0.05
sig.test(two.tailed, alpha)

#Return the critical value for a one-tailed test with a significance level of 0.1
two.tailed <- FALSE
alpha <- 0.1
sig.test(two.tailed, alpha)

dsouthwell/TestPackagev2 documentation built on May 28, 2019, 9:38 a.m.