-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathALSFRS.Rnw
66 lines (44 loc) · 1.17 KB
/
ALSFRS.Rnw
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
\documentclass{article}
\usepackage[left=20mm, right=15mm, top=15mm, bottom=20mm]{geometry}
\begin{document}
%\VignetteEngine{knitr::knitr}
<<setup, cache=FALSE>>=
library("knitr")
opts_chunk$set(cache = FALSE, echo = TRUE,
fig.show='hold', message=FALSE, warning=FALSE)
ca <- FALSE
library("ggplot2")
theme_set(theme_bw(base_size = 18))
library("partykit")
library("sandwich")
library("gridExtra")
library("plyr")
source("ALSFRS_basis.R")
source("basis/personalised_models.R")
source("basis/pruning.R")
source("basis/variable_importance.R")
read_chunk('ALSFRS_R.R')
@
<<data, cache = TRUE>>=
@
\section{Fitting function}
<<fittingfunction, cache = TRUE>>=
@
\section{Compute random forest}
<<forest, cache = TRUE, dependson = c("data", "fittingfunction")>>=
@
\section{Obtain personalised models}
<<pm, out.width = "0.66\\textwidth", out.height = "0.33\\textwidth", fig.width=8, fig.height=4, cache = FALSE>>=
@
\section{Variable importance}
<<varimp, fig.height=11, cache = FALSE>>=
@
\section{Obtain log-Likelihoods}
<<logLiks, cache = TRUE, dependson = "forest">>=
@
<<bootstrapLogliks, cache = FALSE>>=
@
<<sessionInfo>>=
sessionInfo()
@
\end{document}