-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSAPv1.Rmd
136 lines (88 loc) · 2.03 KB
/
SAPv1.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
title: Statistical Analysis Plan
subtitle: version
author:
date: '`r strftime(Sys.time(),format="%d-%b-%Y at %H:%M")`'
params:
datafile:
output:
word_document:
reference_docx: R:/CRU Epibiostat/projects/Mary-Ann/SAP/TemplateStatisticalAnalysisPlan.docx
---
```{r setup child, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, warning=FALSE, message=FALSE, include=FALSE}
library(tidyr)
library(dplyr)
library(CRUmisc)
library(CRUmarkdown)
library(vtree)
```
```{r Changes to SAP, results="asis",echo=FALSE}
cat("
## Describe changes from last version and provide reason(s):
")
```
```{r Study Name and ID, results="asis",echo=FALSE}
cat("
## Study Name and Project ID:
")
```
```{r Timelines, results="asis",echo=FALSE}
cat("
## Key dates/timelines:
")
```
```{r Team, results="asis",echo=FALSE}
cat("
## Research Team:
#### Principal Investigator(s):
#### Co-Investigator(s):
#### Primary Contact:
")
```
```{r Objectives and Outcomes, results="asis",echo=FALSE}
cat("
## Research objectives:
### Primary outcome:
### Secondary outcome(s):
")
```
```{r Target Audience, results="asis",echo=FALSE}
cat("
### Target Journal:
### Target Forum (presentation, abstract):
")
```
```{r Planned Analyses, results="asis",echo=FALSE}
cat("
## Planned Analyses:
")
```
# Some Sample Tables:
## Table 1.i. Demographics/Clinical Characteristics (1 group)
**Variable** | **Value**
---------------------|---------------
| |
| |
| |
| |
\newline
## Table 1.ii. Demographics/Clinical Characteristics (2 groups)
**Variable** | **Group 1** | **Group 2**
---------------------|---------------|---------------
| | |
| | |
| | |
| | |
#########
```{r,results="asis",echo=FALSE}
cat("
> Notes:
>> The Statistical Analysis Plan will need to be revised in the event of:
>> - updates to the study data.
>> - deviations from the planned analyses during the analysis phase of the project.
>> Such changes will substantially lengthen timelines.
")
```