Learn R Programming

ZIM (version 1.1.0)

pvalue: Function to Compute P-value.

Description

Function to compute p-value based on a t-statistic.

Usage

pvalue(t, df = Inf, alternative = c("two.sided", "less", "greater"))

Arguments

t

t-statistic.

df

degree of freedoms.

alternative

type of alternatives.

Examples

Run this code
# NOT RUN {
pvalue(1.96, alternative = "greater")
# }

Run the code above in your browser using DataLab