simulateData: Simulate Data For CAR Function

Description Usage Arguments

View source: R/test.R

Description

Function to simulate data with treatment assignments from Covariate Adaptive Randomization Scheme

Usage

1
2
simulateData(mean.s, mean.t, N = 500, sigma0, sigma, p1, p2, rho,
  design = "Pocock", tau1, tau2)

Arguments

mean.s

Mean of the short term response

mean.t

Mean long-term response

N

Total Sample Size

sigma0

sigma0 in the bivariate normal distribution

sigma

sigma in bivariate normal distribution

p1

Probability of success in first covariate

p2

Probability of success in second covariate

rho

rho in bivariate normal distribution

design

Covariate Adapative Randomization scheme. Default is Pocock

tau1

Tau1 is the weight on the first covariate

tau2

Tau2 is the weight on the second covariate


Gtmille2/seamlessTrial documentation built on Nov. 18, 2019, 5:16 a.m.