data_binomial: Data file for binomial analysis

Description Usage Arguments Value Examples

View source: R/binomial.R

Description

Wrapper function for data file in binomial analysis.

Usage

1
data_binomial(treatment, outcome, complete, .data = NULL)

Arguments

treatment

vector. Treatment assignment for patients, 1 for treatment group and 0 for control group

outcome

vector. Binomial outcome of the trial, 1 for response (success or failure), 0 for no response.

complete

vector. Similar length as treatment and outcome variable, 1 for complete outcome, 0 for loss to follow up. If complete is not provided, the dataset is assumed to be complete.

.data

NULL. Stores the binomial data for analysis. Should not be edited by user.

Value

A list with treatment, outcome and loss to follow up vector with binomial outcome.

Examples

1
data_binomial(treatment = c(0, 1), outcome = c(1, 1), complete = c(1, 1))

thevaachandereng/BACT documentation built on July 24, 2020, 2:35 a.m.