pVal: pVal

View source: R/wBTCode.R

pValR Documentation

pVal

Description

Computes the two-sided p value for the null hypothesis, where the null hypothesis is that the slope is zero. It is based on the binomial distribution. Note that the result does not depend on the magnitude of the individual slope values only depends on the number of positive slopes and number of negative slopes.

Usage

pVal(s)

Arguments

s

numeric vector of slope values from the bootstrap

Value

pVal numeric value

Examples

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

USGS-R/EGRETci documentation built on April 17, 2023, 8 p.m.