F_pval: Visualization of p-values for basic hypothesis tests with the...

Description Usage Arguments Details Value Author(s) Examples

View source: R/F_dist.R

Description

Given F ~ F(df1,df2) the function calculates the p-value and visualizes the result as the area under the density function. Furthermore the mean and the values one and two standard deviations from the mean are highlighted.

Usage

1
F_pval(F_value = 5, df1 = 3, df2 = 5)

Arguments

F_value

The value of a test statistic with the underlying F distribution

(values that are very far away from the mean - roughly more than 4 times the standard deviation - are not recommend to use as the p-value will be approximately 0 or 1 anyways)

df1

The first degree of freedom of the underlying F distribution (only df1 greater than 2).

df2

The second degree of freedom of the underlying F distribution (only df2 greater than 4).

Details

The p-value will be calculated by P(X>F) given X ~ F(df1,df2).

Value

a ggplot2 object displaying the results

Author(s)

Emanuel Sommer

Examples

1
2
F_pval()
F_pval(F_value = 3, df1 = 5, df2 = 30)

EmanuelSommer/PvalVis documentation built on Nov. 20, 2020, 1:34 a.m.