Learn R Programming

datana (version 1.0.6)

pvalz: Obtain the P-value for a Standard Gaussian random variable

Description

Function to computes the P-value for a Standard Gaussian random variable.

Usage

pvalz(zval, decnum = 5)

Value

This function returns the P-value or probability of getting a value as large as 'zval'.

Arguments

zval

A numeric random variable following a Standard Gaussian distribution.

decnum

the number of decimals to be used in the output. The default is set to 5.

Author

Christian Salas-Eljatib

Details

It is suited to compute the P-value for any random variable following a Standard Gaussian probability density function.

Examples

Run this code

pvalz(1.96)

Run the code above in your browser using DataLab