Description Usage Arguments Details Examples

`probability_density_function`

evaluates the probability density
function of a specific distribution `dist`

at a point `x`

.

1 2 3 4 5 6 7 8 9 10 | ```
probability_density_function(dist, x, n, theta, ...)
## S4 method for signature 'Binomial,numeric,numeric,numeric'
probability_density_function(dist, x, n, theta, ...)
## S4 method for signature 'Normal,numeric,numeric,numeric'
probability_density_function(dist, x, n, theta, ...)
## S4 method for signature 'Student,numeric,numeric,numeric'
probability_density_function(dist, x, n, theta, ...)
``` |

`dist` |
a univariate |

`x` |
outcome |

`n` |
sample size |

`theta` |
distribution parameter |

`...` |
further optional arguments |

If the distribution is `Binomial`

,
theta denotes the rate difference between
intervention and control group.
Then, the mean is assumed to be
√ n theta.

If the distribution is `Normal`

, then
the mean is assumed to be
√ n theta.

1 2 3 4 5 | ```
probability_density_function(Binomial(.2, FALSE), 1, 50, .3)
probability_density_function(Normal(), 1, 50, .3)
probability_density_function(Student(TRUE), 1, 40, 1.1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.