MCpower: MC power for selecting the best regime in SMART

Description Usage Arguments Examples

View source: R/main.R

Description

MC power for selecting the best regime in SMART

Usage

1
2
3
4
5
6
7
8
9
MCpower(
  Q = c(0.5, 0.5, 0.5),
  pi1 = c(0.4, 0.35, 0.25),
  pi2 = c(0.35, 0.32, 0.36, 0.56, 0.37, 0.4),
  P = c(1/3, 1/3, 1/3),
  n = 365,
  m = 10000,
  seed = 2021
)

Arguments

Q

a vector of (Q12, Q21, Q31) for second stage randomization probability in SMART

pi1

the respond rate of treatment 1, 2, 3 in stage I in SMART

pi2

the respond rate for patients who do not respond to a treatment in stage I, but respond to another treatment in stage II

P

Randomization probability in stage I

n

Sample size in SMART

m

number of Monte Carlo repetitions

seed

seed for generate MC repetitions

Examples

1
2
3
4
5
6
7
8
9
seed = 2021
Q = c(0.5, 0.5, 0.5)
pi1 = c(0.4, 0.35, 0.25)
pi2 = c(0.35, 0.32, 0.36, 0.56, 0.37, 0.4)
P = c(1/3, 1/3, 1/3)
n = 365
m = 10000

MCpower(Q, pi1, pi2, P, n, m, seed)

wangjunyao0121/RASMART documentation built on Dec. 23, 2021, 5:07 p.m.