enf: expected number of failure in SMART

Description Usage Arguments Examples

View source: R/main.R

Description

expected number of failure in SMART

Usage

1
2
3
4
5
6
7
enf(
  Q,
  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
)

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

Examples

1
2
3
4
5
6
7
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

enf(Q, pi1, pi2, P, n)

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