pvalue function

Function to Compute P-value.

Function to Compute P-value.

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

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

Arguments

  • t: t-statistic.
  • df: degree of freedoms.
  • alternative: type of alternatives.

Examples

pvalue(1.96, alternative = "greater")
  • Maintainer: Ming Yang
  • License: GPL-3
  • Last published: 2018-08-28