Learn R Programming

adoptr (version 0.2.2)

Normal-class: Normal data distribution

Description

Implements a normal data distribution for z-values given an observed z-value and stage size. Standard deviation is 1 and mean where is the standardized effect size. The option two_armed can be set to decide whether a one-arm or a two-arm design should be computed.

Usage

Normal(two_armed = TRUE)

# S4 method for Normal quantile(x, probs, n, theta, ...)

# S4 method for Normal,numeric simulate(object, nsim, n, theta, seed = NULL, ...)

# S4 method for Normal show(object)

Arguments

two_armed

logical indicating if a two-armed trial is regarded

x

outcome

probs

vector of probabilities

n

sample size

theta

distribution parameter

...

further optional arguments

object

object of class Normal

nsim

number of simulation runs

seed

random seed

Details

See DataDistribution-class for more details.

See Also

see probability_density_function and cumulative_distribution_function to evaluate the pdf and the cdf, respectively.

Examples

Run this code
# NOT RUN {
datadist <- Normal(two_armed = TRUE)

# }

Run the code above in your browser using DataLab