Skip to contents

Summarizes the data of one group for a single binary endpoint as the number of subjects and the number of responders. Used for observed proof-of-concept data, external data and hypothetical control data.

Usage

data_binary(n, y)

Arguments

n

Number of subjects (a whole number of at least 1).

y

Number of responders (a whole number from 0 to n).

Value

An object of class c("qdm_data_binary", "qdm_data") with integer elements n and y.

Examples

data_binary(n = 12, y = 7)
#> Data: binary, n = 12, y = 7