Learn R Programming

EGRETci (version 2.0.4)

pVal: 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

Run this code
# NOT RUN {
s <- c(-1.0, 0, 0.5, 0.55, 3.0)
pValue <- pVal(s)
# }

Run the code above in your browser using DataLab