estimation_ub: Unblinded estimation of the correlation

View source: R/estimation_ub.R

estimation_ubR Documentation

Unblinded estimation of the correlation

Description

This function estimates the correlation between two binary endpoints based on unblinded data.

Usage

estimation_ub(samplesize, p0_e1, p1_e1, OR1, p0_e2, p1_e2, OR2, p0_ce, p1_ce)

Arguments

samplesize

numeric parameter, sample size per arm

p0_e1

numeric parameter, probability of occurrence E1 in the control group

p1_e1

numeric parameter, probability of occurrence E1 in the treatment group

OR1

numeric parameter, Odds ratio for the endpoint 1 (design)

p0_e2

numeric parameter, probability of occurrence E2 in the control group

p1_e2

numeric parameter, probability of occurrence E2 in the treatment group

OR2

numeric parameter, Odds ratio for the endpoint 2 (design)

p0_ce

numeric parameter, probability of occurrence composite endpoint in the control group

p1_ce

numeric parameter, probability of occurrence composite endpoint in the treatment group

Value

This function returns the estimated correlation based on unblinded data and the truncated correlation within the possible margins.


eselect documentation built on Feb. 16, 2023, 8:11 p.m.