-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
43 lines (37 loc) · 919 Bytes
/
README.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# The seqtrial Package
This package for R constructs a sequential trial from observational data
# Installation
The package can be installed via
```r
devtools::install_github("LindaNab/seqtrial", build_vignettes = TRUE)
```
# Quick demo
```r
library(seqtrial)
# load the internal paxlovid data
data("paxlovid", package = "seqtrial")
paxlovid_splitted <-
data_splitter(data = paxlovid,
treatment = A,
tt_treatment = tt_A)
# construct trials
trial_constructor(data = paxlovid_splitted,
n = 5,
treatment = A)
```
# More examples
Browse the vignettes of the package for more information.
```r
browseVignettes(package = "seqtrial")
```