binomial_outcome function

Proportion of an event in control and treatment

Proportion of an event in control and treatment

Wrapper function for proportion of an event in control and treatment group with binomial outcome.

binomial_outcome(p_treatment = NULL, p_control = NULL, .data = NULL)

Arguments

  • p_treatment: numeric. The proportion of an event in the treatment group, 0 < ptreatmentp_treatment < 1.
  • p_control: numeric. The proportion of an event in the control group, 0 < pcontrolp_control < 1.
  • .data: NULL. stores the proportion of control and treatment, please do not fill it in.

Returns

a list with proportion of control and treatment group.

Examples

binomial_outcome(p_control = 0.12, p_treatment = 0.08)