set_n: Simulate external trial indicator and treatment arm indicator

View source: R/add_cov.R

set_nR Documentation

Simulate external trial indicator and treatment arm indicator

Description

This function conducts validity check and generates a matrix with two binary variables indicating

  1. if the observation belongs to the external trial

  2. if the observation belongs to the treatment arm.

Usage

set_n(ssC, ssE, ssExt)

Arguments

ssC

Number of observations in the internal control arm. Default is 100

ssE

Number of observations in the internal experiment arm. Default is the same number of observations as ssC

ssExt

Number of observations in the external control arm. Default is the same number of observations as ssC

Value

A matrix containing external trial indicator and treatment indicator


psborrow documentation built on March 7, 2023, 8:32 p.m.