Relative_size: Calculate Sample size using the Relative Time method under...

Description Usage Arguments Value Examples

View source: R/Relative_Size.R

Description

Calculate Sample size using the Relative Time method under Non-Proportional Hazard and Non-Proportional Time scenarios

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Relative_size(
  alpha,
  sides,
  beta0,
  median_c,
  p1,
  p2,
  p_user = NULL,
  RT_P1,
  RT_P2,
  qmin,
  qmax,
  Power,
  r,
  a,
  f,
  p_event
)

Arguments

alpha

numeric variable

sides

binary variable

beta0

numeric variable

median_c

numeric variable

p1

numeric variable

p2

numeric variable

p_user

numeric variable

RT_P1

numeric variable

RT_P2

numeric variable

qmin

numeric variable

qmax

numeric variable

Power

numeric variable

r

numeric variable

a

numeric variable

f

numeric variable

p_event

numeric variable

Value

Sample size Calculation using the Relative Time method proposed by Phadnis and Mayo (2021).

Examples

1
2
3
4
5
Relative_size(alpha = 0.05,sides = 1,beta0  = 1,median_c = 4,p1 = 0.1,p2 = 0.9,RT_P1 = 1.52,RT_P2 = 1.98,qmin = 0.001,qmax = 0.999,Power = 0.8,r = 1,a = 12,f = 12,p_event=0.8)
## Not run: 
Relative_size(alpha = 0.05,sides = 1,beta0  = 1,median_c = 4,p1 = 0.1,p2 = 0.9,RT_P1 = 1.52,RT_P2 = 1.98,qmin = 0.001,qmax = 0.999,Power = 0.8,r = 1,a = 12,f = 12,p_event=0.8)

## End(Not run)

Palash63/RelativeM documentation built on Dec. 18, 2021, 6:39 a.m.