-
Notifications
You must be signed in to change notification settings - Fork 1
/
monitOS.Rmd
48 lines (44 loc) · 1.07 KB
/
monitOS.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: "monitOS"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{monitOS}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
```{r setup}
library(monitOS)
```
```{r Example #1}
# OS monitoring guideline retrospectively applied to Motivating Example 1
# with delta null = 1.3, delta alt = 0.80, gamma_FA = 0.025 and beta_PA = 0.10.
bounds(
events = c(60, 89, 110, 131, 178),
power_int = 0.9, # βPA
falsepos = 0.025, # γFA
hr_null = 1.3, # δnull
hr_alt = 0.8, # δalt
rand_ratio = 1,
hr_marg_benefit = NULL
)
```
```{r Example #2}
# OS monitoring guideline applied to Motivating Example 2
# with delta null = 4/3, delta alt = 0.7, gamma_FA = 0.20, beta_PA = 0.1,
# randomization ratio 2 and 0.95 HR marginal benefit
bounds(
events = c(60, 89, 110, 131, 178),
power_int = 0.9, # βPA
falsepos = 0.025, # γFA
hr_null = 1.3, # δnull
hr_alt = 0.8, # δalt
rand_ratio = 2, # rand_ratio
hr_marg_benefit = 0.95
) # Marginal HR benefit
```