t2p: Use the empirical distribution of a test statistic to get...

Description Usage Arguments Value

View source: R/t2p.R

Description

Use the empirical distribution of a test statistic to get p-values.

Usage

1
t2p(tst, distr, alternative = c("greater", "less", "two-sided"))

Arguments

distr

The empirical distribution, computed by Monte Carlo

alternative

P-value desired: 'greater', 'less', 'two-sided' (may specify more than one)

t

The observed test statistic

Value

the p-value(s)


statlab/permuter documentation built on May 30, 2019, 9:45 a.m.