getPv: Helper function to get p-value from value and distribution...

View source: R/correlationStatistics.R

getPvR Documentation

Helper function to get p-value from value and distribution mean and standard deviation

Description

Helper function to get p-value from value and distribution mean and standard deviation

Usage

getPv(obs, ei, sdi, alternative)

Arguments

obs

Observed value

ei

Mean (Expected value)

sdi

Standard deviation

alternative

"two.sided", "less", or "greater"

Value

P-value

Examples

# Probability of observing 5 while expecting 0 with a standard deviation of 1
getPv(5, 0, 1, 'greater')


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.