pVal: pVal

Description Usage Arguments Value Examples

View source: R/wBTCode.R

Description

Computes the two-sided p value for the null hypothesis, where null hypothesis is that the slope is zero, based on binomial distribution. Should be noted that the result does not depend on the magnitude of the s values only depends on the number of plus values and number of negative values.

Usage

1
pVal(s)

Arguments

s

numeric vector of slope values from the bootstrap (already flipped)

Value

pVal numeric value

Examples

1
2
s <- c(-1.0, 0, 0.5, 0.55, 3.0)
pValue <- pVal(s)

USGS-R/EGRETci documentation built on Oct. 17, 2018, 8:14 p.m.