cumulative_distribution_function: Cumulative distribution function In adoptr: Adaptive Optimal Two-Stage Designs in R

Description

`cumulative_distribution_function` evaluates the cumulative distribution function of a specific distribution `dist` at a point `x`.

Usage

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

Arguments

 `dist` a univariate `distribution` object `x` outcome `n` sample size `theta` distribution parameter `...` further optional arguments

Details

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.

Examples

 ```1 2 3 4 5``` ```cumulative_distribution_function(Binomial(.1, TRUE), 1, 50, .3) cumulative_distribution_function(Normal(), 1, 50, .3) cumulative_distribution_function(Student(two_armed = FALSE), .75, 50, .9) ```

adoptr documentation built on June 28, 2021, 5:11 p.m.