-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathradiant-tutorial-series.Rmd
277 lines (200 loc) · 13.7 KB
/
radiant-tutorial-series.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
---
title: Radiant Tutorial Series
output:
html_document:
toc: true
---
This page provides an overview of the available videos in the Radiant Tutorial Series. For each of the modules
below, it is useful to leverage RStudio Projects to set up the environment to more easily access data and models
from Radiant. Open RStudio and cut/paste the given command + URL into the console. This will download the
assignment and supporting files and subsequently open a new RStudio project. You will know it is working if
you look at the top right-hand corner of RStudio and see the module name (e.g., "decision_tree") and see
the relevant module files in the bottom right pane. From here, you will simply need to click on "Addins" on the
top menu and then "Start radiant" to follow along with the tutorial.
In additional to the links below, you can access the <a href="https://www.youtube.com/playlist?list=PLNhtaetb48EdKRIY7MewCyvb_1x7dV3xw" target="_blank">tutorial playlist</a> on Youtube.
## Decision Analysis
Copy-and-paste the full command below into the RStudio console (i.e., the bottom-left window) and press return to gain
access to all materials used in the decision tree module:
<pre><span style="font-size: 12pt;"><strong>usethis::use_course("https://www.dropbox.com/sh/bit4p1ffbkb2dgh/AACm1RVy2BxBDiVbjoLiN5_Ea?dl=1")</strong></span></pre>
* <a href="https://youtu.be/plSeVJ7c-Iw" target="_blank">Introduction to Decision Analysis (#1)</a>
* This video walks you through the required steps to construct and solve a basic decision tree by hand
* Topics List:
* Chance nodes vs. decision nodes
* Folding back the tree (i.e., start from the right-most nodes and work backwards to the left-most nodes)
* <a href="https://youtu.be/plSeVJ7c-Iw" target="_blank">Introduction to Decision Analysis (#1)</a>
* This video walks you through the required steps to construct and solve a basic decision tree by hand
* Topics List:
* Chance nodes vs. decision nodes
* Folding back the tree (i.e., start from the right-most nodes and work backwards to the left-most nodes)
* <a href="https://youtu.be/dBySH3z2Paw" target="_blank">Using Radiant to Construct a Decision Tree (#2)</a>
* This video demonstrates how to construct a basic decision tree in Radiant
* Topics List:
* Rename a tree file
* Construct a tree (following the rules for decision tree input)
* Interpret the results (initial tree vs final tree)
* Save the decision tree input .yaml file
* <a href="https://youtu.be/NlvWCU8UhTc" target="_blank">How to Write Decision Tree Results into a Report (#3)</a>
* This video demonstrates how to construct a basic decision tree in Radiant and add the generated R-code to report
* Topics List:
* Construct a decision tree and define variables in the decision tree
* Add multiple trees to a report
* Demo some useful keyboard shortcuts
* Save the Radiant state file and the report
* <a href="https://youtu.be/c_pCCCn6FEw" target="_blank">Sensitivity Analysis of Decision Tree (#4)</a>
* This video shows two ways to conduct sensitivity analysis of a decision tree in Radiant
* Topics List:
* Quick review of writing decision tree results to a report
* Method 1: manually update the value
* Method 2: use "variables"
* <a href="https://youtu.be/oiwv15bbjzs" target="_blank">How to Debug Decision Tree Input (#5)</a>
* This video demonstrates how to debug decision tree input if you see an error message
* Topics List:
* Colon missing
* Indent issue
* Probabilities don't sum to 1
* Value missing
* <a href="https://youtu.be/xuv9zgAcvCQ" target="_blank">Decision Trees with Imperfect Information (#6)</a>
* This video shows how to determine the appropriate (conditional) probabilities to use in a decision tree when the available information is imperfect
* Topics List:
* Imperfect information
* Test
* Conditional probabilities
* <a href="https://youtu.be/cVrYFFX3xN0" target="_blank">Solving a Decision Tree with Imperfect Information (#7)</a>
* This video shows how to use Radiant to construct and solve a decision tree when the available information is imperfect
* Topics List:
* Specify variables
* Build a tree with imperfect information
* Check the tree
* Interpret the decision tree result
* <a href="https://youtu.be/Mi-eZEoU9TE" target="_blank">Writing Decision Tree with Sub-trees in Radiant (#8)</a>
* This video shows how to construct a decision tree with sub-trees in radiant
* Topics List:
* Create a main tree that references a sub-tree
* Specify a sub-tree that references the main tree in the variables section
## Probability Calculator
Copy-and-paste the full command below into the RStudio console (i.e., the bottom-left window) and press return to gain
access to all materials used in the probability calculator module:
<pre><span style="font-size: 12pt;"><strong>usethis::use_course("https://www.dropbox.com/sh/zw1yuiw8hvs47uc/AABPo1BncYv_i2eZfHQ7dgwCa?dl=1")</strong></span></pre>
* <a href="https://youtu.be/UPL_8ujAXpww" target="_blank">Describing the Distribution of a Discrete Random Variable (#1)</a>
* This video shows how to summarize information about a discrete random variable using the probability calculator in Radiant
* Topics List:
* Calculate the mean and variance for a discrete random variable by hand
* Calculate the mean, variance, and select probabilities for a discrete random variable in Radiant
* <a href="https://youtu.be/30YsxCTbDTc" target="_blank">Describing Normal and Binomial Distributions in Radiant(#2)</a>
* This video shows how to summarize information about Normal and Binomial distributions using the probability calculator in Radiant
* Topics List:
* Calculate probabilities of a random variable following a Normal distribution in Radiant
* Calculate probabilities of a random variable following a Binomial distribution by hand
* Calculate probabilities of a random variable following a Binomial distribution in Radiant
* <a href="https://youtu.be/LbwUpEwTJ_Q" target="_blank">Describing Uniform and Binomial Distributions in Radiant(#3)</a>
* This video shows how to summarize information about Uniform and Binomial distributions using the probability calculator in Radiant
* Topics List:
* Calculate probabilities of a random variable following a Uniform distribution in Radiant
* Calculate probabilities of a random variable following a Binomial distribution in Radiant
* <a href="https://youtu.be/XC2yN5BY8jg" target="_blank">Providing Probability Bounds(#4)</a>
* This video demonstrates how to provide probability bounds in Radiant
* Topics List:
* Use probabilities as input type
* Round up the cutoff value
## Hypothesis Testing
Copy-and-paste the full command below into the RStudio console (i.e., the bottom-left window) and press return to gain
access to all materials used in the hypothesis testing module:
<pre><span style="font-size: 12pt;"><strong>usethis::use_course("https://www.dropbox.com/sh/0xvhyolgcvox685/AADSppNSIocrJS-BqZXhD1Kna?dl=1")</strong></span></pre>
* <a href="https://youtu.be/QV1qA5RPzlY" target="_blank">Single Mean Hypothesis Test (#1)</a>
* This video shows how to test a hypothesis about a single sample mean versus a population mean
* Topics List:
* Calculate summary statistics for a sample
* Setup a hypothesis test for a single mean in Radiant
* Use the p.value, confidence interval, or critical value to evaluate the hypothesis test
* <a href="https://youtu.be/tTYvBUCaR3w" target="_blank">Single Proportion Hypothesis Test (#2)</a>
* This video shows how to test a hypothesis about a single sample proportion versus a population proportion
* Topics List:
* Setup a hypothesis test for a single proportion in Radiant
* Use the p.value, confidence interval, or critical value to evaluate the hypothesis test
* <a href="https://youtu.be/cTWk0JADnVg" target="_blank">Compare Means Hypothesis Test (#3)</a>
* This video shows how to conduct a compare means hypothesis test
* Topics List:
* Calculate summary statistics by groups
* Setup a hypothesis test for compare means in Radiant
* Use the p.value and confidence interval to evaluate the hypothesis test
* <a href="https://youtu.be/ICqSRs4UfLM" target="_blank">Compare Proportions Hypothesis Test (#4)</a>
* This video shows how to conduct a compare proportions hypothesis test
* Topics List:
* Setup a hypothesis test for compare means in Radiant
* Use the p.value and confidence interval to evaluate the hypothesis test
* <a href="https://youtu.be/MEt8vO5FNYQ" target="_blank">Cross-tabs Hypothesis Test (#5)</a>
* This video demonstrates how to investigate associations between two categorical variables by a cross-tabs hypothesis test
* Topics List:
* Setup a hypothesis test for cross-tabs in Radiant
* Explain how observed, expected and contribution to chi-squared tables are constructed
* Use the p.value and critical value to evaluate the hypothesis test
## Linear Regression
Copy-and-paste the full command below into the RStudio console (i.e., the bottom-left window) and press return to gain
access to all materials used in the linear regression module:
<pre><span style="font-size: 12pt;"><strong>usethis::use_course("https://www.dropbox.com/sh/s70cb6i0fin7qq4/AACje2BAivEKDx7WrLrPr5m9a?dl=1")</strong></span></pre>
* <a href="https://youtu.be/xw4pxIcveh4" target="_blank">Data Exploration and Pre-check of Regression (#1)</a>
* This video shows how to use Radiant to explore and visualize data before running a linear regression
* Topics List:
* View data
* Visualize data
* <a href="https://youtu.be/MepD4N02UO8" target="_blank">Interpretation of Regression Results and Prediction (#2)</a>
* This video explains how to interpret the regression results and calculate the predicted value from a linear regression model
* Topics List:
* Interpret coefficients (numeric and categorical variables)
* Interpret R-squared and adjusted R-squared
* Interpret F-test result
* Predict from a regression model
* <a href="https://youtube.com/watch?v=P7SdRlZkGIM" target="_blank">Dealing with Categorical Variables (#3)</a>
* This video shows how to deal with categorical variables in a linear regression model
* Topics List:
* Check the baseline category in Radiant
* Change the baseline category
* <a href="https://youtu.be/JymPztY9jrc" target="_blank">Adding New Variables into a Regression Model (#4)</a>
* This video demonstrates how to test if adding new variables will lead to a better model with significantly higher explanatory power
* Topics List:
* Set up a hypothesis test for adding new variables in Radiant
* Interpret the F-test results
* Compare this F-test to the default F-test in regression summary
* <a href="https://youtu.be/nLZx84v1PkI" target="_blank">Linear Regression Validation (#5)</a>
* This video demonstrates how to validate a linear regression model
* Topics List:
* Linearity (scatter plots, same as the one in the pre-check)
* Normality Check (Normal Q-Q plot)
* Multicollinearity (VIF)
* Heteroscedasticity
* <a href="https://youtu.be/byP2YJNqtRc" target="_blank">Log-log Regression (#6)</a>
* This video demonstrates when and how to run a log-log regression
* Topics List:
* Transform data with skewed distributions by natural log function
* Interpret the coefficients in a log-log regression
## Simulation
Copy-and-paste the full command below into the RStudio console (i.e., the bottom-left window) and press return to gain
access to all materials used in the simulation module:
<pre><span style="font-size: 12pt;"><strong>usethis::use_course("https://www.dropbox.com/sh/72kpk88ty4p1uh5/AABWcfhrycLzCuCvI6FRu0zia?dl=1")</strong></span></pre>
* <a href="https://youtu.be/kYaRVbStwwI" target="_blank">Setting Up a Simulation in Radiant (#1)</a>
* This video demonstrates how to use Radiant to set up a simulation
* Topics List:
* Brief introduction to the Poisson distribution
* Specifying a simulation
* Interpretation of the simulation summary
* <a href="https://youtu.be/9r61AAks7sc" target="_blank">Setting Up a Repeated Simulation in Radiant (#2)</a>
* This video shows how to use Radiant to set up a repeated simulation
* Topics List:
* Specifying a repeated simulation
* Interpretation of the repeated simulation summary
* <a href="https://youtu.be/0RDGddKTgtI" target="_blank">Using simulation to solve probability questions (#3)</a>
* This video demonstrates how to use simulation to solve probability questions in Radiant
* Topics List:
* Review of setting up a (repeated) simulation
* Interpretation of the simulation summary
* Intuition of how repeated simulations work
* <a href="https://youtu.be/gxzrVtAefoo" target="_blank">Simulation Formula Tips (#4)</a>
* This video discusses some helpful functions that are commonly used in simulation formulas
* Topics List:
* Use <code>ifelse</code> to specify a simulation formula
* Use <code>pmax</code> to specify a simulation formula
* <a href="https://youtu.be/GSghSOyJ1Ws" target="_blank">Using Grid Search in Simulation (#5)</a>
* This video demonstrates how to use grid search in simulation
* Topics List:
* Find an optimal value by sorting simulated data or creating a plot
* Find an optimal value by using <code>find_max</code> function