Description Usage Arguments Value Author(s) Examples
Given z ~ N(μ,σ^2) 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.
1 2 |
z_value |
The value of a test statistic with the underlying normal 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) |
mean |
The mean of the underlying normal distribution (default is 0). |
sd |
The standard deviation of the underlying normal distribution (default is 1). |
direction |
The 'direction' of the test with respect to z:
So for the first three options a one sided hypothesis gets tested and for the last one a two sided hypothesis is tested. |
a ggplot2 object displaying the results
Emanuel Sommer
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.