-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
903 lines (811 loc) · 38.2 KB
/
index.html
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<title>Radiant – Business analytics using R and Shiny</title>
<script src="libs/header-attrs-2.28/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/cosmo.min.css" rel="stylesheet" />
<script src="libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/html5shiv.min.js"></script>
<script src="libs/bootstrap-3.3.5/shim/respond.min.js"></script>
<style>h1 {font-size: 34px;}
h1.title {font-size: 38px;}
h2 {font-size: 30px;}
h3 {font-size: 24px;}
h4 {font-size: 18px;}
h5 {font-size: 16px;}
h6 {font-size: 12px;}
code {color: inherit; background-color: rgba(0, 0, 0, 0.04);}
pre:not([class]) { background-color: white }</style>
<script src="libs/navigation-1.1/tabsets.js"></script>
<style type="text/css">
/* padding for bootstrap navbar */
body {
padding-top: 50px;
padding-bottom: 40px;
}
/* offset scroll position for anchor links (for fixed navbar) */
.section h2 {
padding-top: 55px;
margin-top: -55px;
}
.section h3 {
padding-top: 55px;
margin-top: -55px;
}
/* don't use link color in navbar */
.dropdown-menu>li>a {
display: inline;
color: black;
padding-top: 0;
padding-bottom: 0;
}
.dropdown-menu .divider {
margin-top: 2px;
margin-bottom: 2px;
}
img {
max-width: 85% !important;
}
/*
img.center {
display: block;
margin: 0 auto;
}
*/
</style>
<link rel="stylesheet" href="libs/font-awesome-4.1.0/css/font-awesome.min.css"/>
<link rel="shortcut icon" type="image/png" href="/docs/images/icon.png"/>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
</style>
<style type="text/css">
code {
white-space: pre;
}
.sourceCode {
overflow: visible;
}
</style>
<style type="text/css" data-origin="pandoc">
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
}
pre.numberSource { margin-left: 3em; padding-left: 4px; }
div.sourceCode
{ color: #cccccc; background-color: #303030; }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ffcfaf; } /* Alert */
code span.an { color: #7f9f7f; font-weight: bold; } /* Annotation */
code span.at { } /* Attribute */
code span.bn { color: #dca3a3; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #f0dfaf; } /* ControlFlow */
code span.ch { color: #dca3a3; } /* Char */
code span.cn { color: #dca3a3; font-weight: bold; } /* Constant */
code span.co { color: #7f9f7f; } /* Comment */
code span.cv { color: #7f9f7f; font-weight: bold; } /* CommentVar */
code span.do { color: #7f9f7f; } /* Documentation */
code span.dt { color: #dfdfbf; } /* DataType */
code span.dv { color: #dcdccc; } /* DecVal */
code span.er { color: #c3bf9f; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #c0bed1; } /* Float */
code span.fu { color: #efef8f; } /* Function */
code span.im { } /* Import */
code span.in { color: #7f9f7f; font-weight: bold; } /* Information */
code span.kw { color: #f0dfaf; } /* Keyword */
code span.op { color: #f0efd0; } /* Operator */
code span.ot { color: #efef8f; } /* Other */
code span.pp { color: #ffcfaf; font-weight: bold; } /* Preprocessor */
code span.sc { color: #dca3a3; } /* SpecialChar */
code span.ss { color: #cc9393; } /* SpecialString */
code span.st { color: #cc9393; } /* String */
code span.va { } /* Variable */
code span.vs { color: #cc9393; } /* VerbatimString */
code span.wa { color: #7f9f7f; font-weight: bold; } /* Warning */
</style>
<script>
// apply pandoc div.sourceCode style to pre.sourceCode instead
(function() {
var sheets = document.styleSheets;
for (var i = 0; i < sheets.length; i++) {
if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
try { var rules = sheets[i].cssRules; } catch (e) { continue; }
var j = 0;
while (j < rules.length) {
var rule = rules[j];
// check if there is a div.sourceCode rule
if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") {
j++;
continue;
}
var style = rule.style.cssText;
// check if color or background-color is set
if (rule.style.color === '' && rule.style.backgroundColor === '') {
j++;
continue;
}
// replace div.sourceCode by a pre.sourceCode rule
sheets[i].deleteRule(j);
sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
}
}
})();
</script>
<style type = "text/css">
.main-container {
max-width: 940px;
margin-left: auto;
margin-right: auto;
}
img {
max-width:100%;
}
.tabbed-pane {
padding-top: 12px;
}
.html-widget {
margin-bottom: 20px;
}
button.code-folding-btn:focus {
outline: none;
}
summary {
display: list-item;
}
details > summary > p:only-child {
display: inline;
}
pre code {
padding: 0;
}
</style>
<!-- tabsets -->
<style type="text/css">
.tabset-dropdown > .nav-tabs {
display: inline-table;
max-height: 500px;
min-height: 44px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
}
.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before {
content: "\e259";
font-family: 'Glyphicons Halflings';
display: inline-block;
padding: 10px;
border-right: 1px solid #ddd;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
content: "\e258";
font-family: 'Glyphicons Halflings';
border: none;
}
.tabset-dropdown > .nav-tabs > li.active {
display: block;
}
.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
border: none;
display: inline-block;
border-radius: 4px;
background-color: transparent;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
display: block;
float: none;
}
.tabset-dropdown > .nav-tabs > li {
display: none;
}
</style>
<!-- code folding -->
</head>
<body>
<div class="container-fluid main-container">
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://github.com/radiant-rstats/docs">Radiant</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="/docs/index.html">Home</a></li>
<li><a href="/docs/news.html">News</a></li>
<li><a href="/docs/install.html">Install</a></li>
<li class="dropdown">
<a href="/docs/data/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Data<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/data/manage.html">Manage</a></li>
<li><a href="/docs/data/view.html">View</a></li>
<li><a href="/docs/data/visualize.html">Visualize</a></li>
<li><a href="/docs/data/pivotr.html">Pivot</a></li>
<li><a href="/docs/data/explore.html">Explore</a></li>
<li><a href="/docs/data/transform.html">Transform</a></li>
<li><a href="/docs/data/combine.html">Combine</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/design/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Design<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">DOE</li>
<li><a href="/docs/design/doe.html">Design of Experiments (DOE)</a></li>
<li class="divider"></li>
<li class="dropdown-header">Sample</li>
<li><a href="/docs/design/sampling.html">Random sampling</a></li>
<li><a href="/docs/design/randomizer.html">Random assignment</a></li>
<li><a href="/docs/design/sample_size.html">Sample size (single)</a></li>
<li><a href="/docs/design/sample_size_comp.html">Sample size (compare)</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/basics/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Basics<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Probability</li>
<li><a href="/docs/basics/prob_calc.html">Probability calculator</a></li>
<li><a href="/docs/basics/clt.html">Central Limit Theorem</a></li>
<li class="divider"></li>
<li class="dropdown-header">Means</li>
<li><a href="/docs/basics/single_mean.html">Single mean</a></li>
<li><a href="/docs/basics/compare_means.html">Compare means</a></li>
<li class="divider"></li>
<li class="dropdown-header">Proportions</li>
<li><a href="/docs/basics/single_prop.html">Single proportion</a></li>
<li><a href="/docs/basics/compare_props.html">Compare proportions</a></li>
<li class="divider"></li>
<li class="dropdown-header">Tables</li>
<li><a href="/docs/basics/goodness.html">Goodness of fit</a></li>
<li><a href="/docs/basics/cross_tabs.html">Cross-tabs</a></li>
<li><a href="/docs/basics/correlation.html">Correlation</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/model/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Model<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Estimate</li>
<li><a href="/docs/model/regress.html">Linear regression (OLS)</a></li>
<li><a href="/docs/model/logistic.html">Logistic regression (GLM)</a></li>
<li><a href="/docs/model/mnl.html">Multinomial logistic regression (MNL)</a></li>
<li><a href="/docs/model/nn.html">Neural Network</a></li>
<li><a href="/docs/model/nb.html">Naive Bayes</a></li>
<li class="divider"></li>
<li class="dropdown-header">Trees</li>
<li><a href="/docs/model/crtree.html">Classification and regression trees</a></li>
<li><a href="/docs/model/rforest.html">Random Forest</a></li>
<li><a href="/docs/model/gbt.html">Gradient Boosted Trees</a></li>
<li class="divider"></li>
<li class="dropdown-header">Evaluate</li>
<li><a href="/docs/model/evalreg.html">Evaluate regression</a></li>
<li><a href="/docs/model/evalbin.html">Evaluate classification</a></li>
<li class="divider"></li>
<li class="dropdown-header">Recommend</li>
<li><a href="/docs/model/crs.html">Collaborative Filtering</a></li>
<li class="divider"></li>
<li class="dropdown-header">Decide</li>
<li><a href="/docs/model/dtree.html">Decision analysis</a></li>
<li><a href="/docs/model/simulater.html">Simulate</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/multivariate/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Multivariate<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-header">Maps</li>
<li><a href="/docs/multivariate/mds.html">(Dis)similarity</a></li>
<li><a href="/docs/multivariate/prmap.html">Attributes</a></li>
<li class="divider"></li>
<li class="dropdown-header">Factor</li>
<li><a href="/docs/multivariate/pre_factor.html">Pre-factor</a></li>
<li><a href="/docs/multivariate/full_factor.html">Factor</a></li>
<li class="divider"></li>
<li class="dropdown-header">Cluster</li>
<li><a href="/docs/multivariate/hclus.html">Hierarchical</a></li>
<li><a href="/docs/multivariate/kclus.html">K-clustering</a></li>
<li class="divider"></li>
<li class="dropdown-header">Conjoint</li>
<li><a href="/docs/multivariate/conjoint.html">Conjoint</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/R/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">R<span
class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/data/report_rmd.html">Report > Rmd</a></li>
<li><a href="/docs/data/report_r.html">Report > R</a></li>
<li><a href="/docs/programming.html">Programming</a></li>
<li><a href="/docs/resources.html">Resources</a></li>
</ul>
</li>
<li class="dropdown">
<a href="/docs/tutorials/" class="dropdown-toggle" data-toggle="dropdown" role="button"
aria-expanded="false">Tutorials<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="/docs/tutorials.html">Introduction to Radiant</a></li>
<li><a href="/docs/radiant-tutorial-series.html">Radiant Tutorial Series</a></li>
</ul>
</li>
<li><a href="/docs/about.html">About</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
<!--/.container -->
</div>
<!--/.navbar -->
<style>
.btn,
.form-control,
pre,
code,
pre code {
border-radius: 4px;
}
.table {
width: auto;
}
ul,
ol {
padding-left: 18px;
}
code,
pre,
pre code {
overflow: auto;
white-space: pre;
word-wrap: normal;
}
code {
color: #c7254e;
background-color: #f9f2f4;
}
pre {
background-color: #ffffff;
}
</style>
<div id="header">
<h1 class="title toc-ignore">Radiant – Business analytics using R and
Shiny</h1>
</div>
<hr />
<p>Radiant is an open-source platform-independent browser-based
interface for business analytics in <a
href="https://www.r-project.org/">R</a>. The application is based on the
<a href="https://shiny.posit.co/">Shiny</a> package and can be run
locally or on a server. Radiant was developed by
<a href="https://rady.ucsd.edu/faculty-research/faculty/vincent-nijs.html" target="\_blank">Vincent
Nijs</a>. Please use the issue tracker on GitHub to suggest enhancements
or report problems: <a
href="https://github.com/radiant-rstats/radiant/issues"
class="uri">https://github.com/radiant-rstats/radiant/issues</a>. For
other questions and comments please use <a
href="mailto:[email protected]"
class="email">[email protected]</a>.</p>
<div id="key-features" class="section level2">
<h2>Key features</h2>
<ul>
<li>Explore: Quickly and easily summarize, visualize, and analyze your
data</li>
<li>Cross-platform: It runs in a browser on Windows, Mac, and Linux</li>
<li>Reproducible: Recreate results and share work with others as a state
file or an <a href="https://rmarkdown.rstudio.com/">Rmarkdown</a>
report</li>
<li>Programming: Integrate Radiant’s analysis functions with your own
R-code</li>
<li>Context: Data and examples focus on business applications</li>
</ul>
<iframe width="640" height="375" src="https://www.youtube.com/embed/7L3hDpLw53I" frameborder="0" allowfullscreen>
</iframe>
<div id="playlists" class="section level4">
<h4>Playlists</h4>
<p>There are two youtube playlists with video tutorials. The first
provides a general introduction to key features in Radiant. The second
covers topics relevant in a course on business analytics (i.e.,
Probability, Decision Analysis, Hypothesis Testing, Linear Regression,
and Simulation).</p>
<ul>
<li><a href="https://www.youtube.com/playlist?list=PLNhtaetb48EedDmWPUqytnQv-qxmCGtxi" target="_blank">Introduction
to Radiant</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLNhtaetb48EdKRIY7MewCyvb_1x7dV3xw" target="_blank">Radiant
Tutorial Series</a></li>
</ul>
</div>
<div id="explore" class="section level4">
<h4>Explore</h4>
<p>Radiant is interactive. Results update immediately when inputs are
changed (i.e., no separate dialog boxes) and/or when a button is pressed
(e.g., <code>Estimate</code> in <em>Model > Estimate > Logistic
regression (GLM)</em>). This facilitates rapid exploration and
understanding of the data.</p>
</div>
<div id="cross-platform" class="section level4">
<h4>Cross-platform</h4>
<p>Radiant works on Windows, Mac, or Linux. It can run without an
Internet connection and no data will leave your computer. You can also
run the app as a web application on a server.</p>
</div>
<div id="reproducible" class="section level4">
<h4>Reproducible</h4>
<p>To conduct high-quality analysis, simply saving output is not enough.
You need the ability to reproduce results for the same data and/or when
new data become available. Moreover, others may want to review your
analysis and results. Save and load the state of the application to
continue your work at a later time or on another computer. Share state
files with others and create reproducible reports using <a
href="https://rmarkdown.rstudio.com/">Rmarkdown</a>. See also the
section on <code>Saving and loading state</code> below</p>
<p>If you are using Radiant on a server you can even share the URL
(include the SSUID) with others so they can see what you are working on.
Thanks for this feature go to <a href="https://github.com/jcheng5">Joe
Cheng</a>.</p>
</div>
<div id="programming" class="section level4">
<h4>Programming</h4>
<p>Although Radiant’s web-interface can handle quite a few data and
analysis tasks, you may prefer to write your own R-code. Radiant
provides a bridge to programming in R(studio) by exporting the functions
used for analysis (i.e., you can conduct your analysis using the Radiant
web-interface or by calling Radiant’s functions directly from R-code).
For more information about programming with Radiant see the <a
href="https://radiant-rstats.github.io/docs/programming.html">programming</a>
page on the documentation site.</p>
</div>
<div id="context" class="section level4">
<h4>Context</h4>
<p>Radiant focuses on business data and decisions. It offers tools,
examples, and documentation relevant for that context, effectively
reducing the business analytics learning curve.</p>
</div>
</div>
<div id="how-to-install-radiant" class="section level2">
<h2>How to install Radiant</h2>
<ul>
<li>Required: <a href="https://cran.r-project.org/">R</a> version 4.0.0
or later</li>
<li>Required: <a
href="https://posit.co/download/rstudio-server/">Rstudio</a></li>
</ul>
<p>In Rstudio you can start and update Radiant through the
<code>Addins</code> menu at the top of the screen. To install the latest
version of Radiant for Windows or Mac, with complete documentation for
off-line access, open R(studio) and copy-and-paste the command
below:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"radiant"</span>)</span></code></pre></div>
<p>Once all packages are installed, select <code>Start radiant</code>
from the <code>Addins</code> menu in Rstudio or use the command below to
launch the app:</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" tabindex="-1"></a>radiant<span class="sc">::</span><span class="fu">radiant</span>()</span></code></pre></div>
<p>To launch Radiant in Rstudio’s viewer pane use the command below:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" tabindex="-1"></a>radiant<span class="sc">::</span><span class="fu">radiant_viewer</span>()</span></code></pre></div>
<p>To launch Radiant in an Rstudio Window use the command below:</p>
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" tabindex="-1"></a>radiant<span class="sc">::</span><span class="fu">radiant_window</span>()</span></code></pre></div>
<p>To easily update Radiant and the required packages, install the
<code>radiant.update</code> package using:</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb5-2"><a href="#cb5-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"remotes"</span>)</span>
<span id="cb5-3"><a href="#cb5-3" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">"radiant-rstats/radiant.update"</span>, <span class="at">upgrade =</span> <span class="st">"never"</span>)</span></code></pre></div>
<p>Then select <code>Update radiant</code> from the <code>Addins</code>
menu in Rstudio or use the command below:</p>
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1" tabindex="-1"></a>radiant.update<span class="sc">::</span><span class="fu">radiant.update</span>()</span></code></pre></div>
<p>See the <a
href="https://radiant-rstats.github.io/docs/install.html">installing
radiant</a> page additional for details.</p>
<p><strong>Optional:</strong> You can also create a launcher on your
Desktop to start Radiant by typing <code>radiant::launcher()</code> in
the R(studio) console and pressing return. A file called
<code>radiant.bat</code> (windows) or <code>radiant.command</code> (mac)
will be created that you can double-click to start Radiant in your
default browser. The <code>launcher</code> command will also create a
file called <code>update_radiant.bat</code> (windows) or
<code>update_radiant.command</code> (mac) that you can double-click to
update Radiant to the latest release.</p>
<p>When Radiant starts you will see data on diamond prices. To close the
application click the <i title='Power off' class='fa fa-power-off'></i>
icon in the navigation bar and then click <code>Stop</code>. The Radiant
process will stop and the browser window will close (Chrome) or
gray-out.</p>
</div>
<div id="documentation" class="section level2">
<h2>Documentation</h2>
<p>Documentation and tutorials are available at <a
href="https://radiant-rstats.github.io/docs/"
class="uri">https://radiant-rstats.github.io/docs/</a> and in the
Radiant web interface (the <i title='Help' class='fa fa-question'></i>
icons on each page and the
<i title='Help' class='fa fa-question-circle'></i> icon in the
navigation bar).</p>
<p>Individual Radiant packages also each have their own <a
href="https://github.com/r-lib/pkgdown">pkgdown</a> sites:</p>
<ul>
<li><a href="http://radiant-rstats.github.io/radiant"
class="uri">http://radiant-rstats.github.io/radiant</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.data"
class="uri">http://radiant-rstats.github.io/radiant.data</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.design"
class="uri">http://radiant-rstats.github.io/radiant.design</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.basics"
class="uri">http://radiant-rstats.github.io/radiant.basics</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.model"
class="uri">http://radiant-rstats.github.io/radiant.model</a></li>
<li><a href="http://radiant-rstats.github.io/radiant.multivariate"
class="uri">http://radiant-rstats.github.io/radiant.multivariate</a></li>
</ul>
<p>Want some help getting started? Watch the tutorials on the <a
href="https://radiant-rstats.github.io/docs/tutorials.html">documentation
site</a>.</p>
</div>
<div id="reporting-issues" class="section level2">
<h2>Reporting issues</h2>
<p>Please use the GitHub issue tracker at
<a href="https://github.com/radiant-rstats/radiant/issues" target="_blank">github.com/radiant-rstats/radiant/issues</a>
if you have any problems using Radiant.</p>
</div>
<div id="try-radiant-online" class="section level2">
<h2>Try Radiant online</h2>
<p>Not ready to install Radiant on your computer? Try it online at the
link below:</p>
<p><a href="https://vnijs.shinyapps.io/radiant" target="_blank">https://vnijs.shinyapps.io/radiant</a></p>
<p>Do <strong>not</strong> upload sensitive data to this public server.
The size of data upload has been restricted to 10MB for security
reasons.</p>
</div>
<div id="running-radiant-on-shinyapps.io" class="section level2">
<h2>Running Radiant on shinyapps.io</h2>
<p>To run your own instance of Radiant on shinyapps.io first
<a href = "https://radiant-rstats.github.io/docs/install.html" target = "_blank">install
Radiant and its dependencies</a>. Then clone the
<a href="https://github.com/radiant-rstats/radiant" target="_blank">radiant</a>
repo and ensure you have the latest version of the Radiant packages
installed by running <code>radiant/inst/app/for.shinyapps.io.R</code>.
Finally, open <code>radiant/inst/app/ui.R</code> and <a
href="https://shiny.posit.co/articles/shinyapps.html">deploy</a> the
application.</p>
</div>
<div id="running-radiant-on-shiny-server" class="section level2">
<h2>Running Radiant on shiny-server</h2>
<p>You can also host Radiant using <a
href="https://posit.co/download/shiny-server/">shiny-server</a>. First,
install radiant on the server using the command below:</p>
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1" tabindex="-1"></a><span class="fu">options</span>(<span class="at">repos =</span> <span class="fu">c</span>(<span class="at">RSM =</span> <span class="st">"https://radiant-rstats.github.io/minicran"</span>, <span class="at">CRAN =</span> <span class="st">"https://cloud.r-project.org"</span>))</span>
<span id="cb7-2"><a href="#cb7-2" tabindex="-1"></a><span class="fu">install.packages</span>(<span class="st">"radiant"</span>)</span></code></pre></div>
<p>Then clone the
<a href="https://github.com/radiant-rstats/radiant" target="_blank">radiant</a>
repo and point shiny-server to the <code>inst/app/</code> directory. As
a courtesy, please let me know if you intend to use Radiant on a
server.</p>
<p>When running Radiant on a server, by default, file uploads are
limited to 10MB and R-code in <em>Report > Rmd</em> and <em>Report
> R</em> will not be evaluated for security reasons. If you have
<code>sudo</code> access to the server and have appropriate security in
place you can change these settings by adding the following lines to
<code>.Rprofile</code> for the <code>shiny</code> user on the
server.</p>
<div class="sourceCode" id="cb8"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb8-1"><a href="#cb8-1" tabindex="-1"></a><span class="ex">options</span><span class="er">(</span><span class="ex">radiant.maxRequestSize</span> = <span class="at">-1</span><span class="kw">)</span> <span class="co">## no file size limit</span></span>
<span id="cb8-2"><a href="#cb8-2" tabindex="-1"></a><span class="ex">options</span><span class="er">(</span><span class="ex">radiant.report</span> = TRUE<span class="kw">)</span></span></code></pre></div>
</div>
<div id="running-radiant-in-the-cloud-e.g.-aws" class="section level2">
<h2>Running Radiant in the cloud (e.g., AWS)</h2>
<p>To run radiant in the cloud you can use the customized Docker
container. See
<a href = "https://github.com/radiant-rstats/docker" target="_blank">https://github.com/radiant-rstats/docker</a>
for details</p>
</div>
<div id="saving-and-loading-state" class="section level2">
<h2>Saving and loading state</h2>
<p>To save your analyses save the state of the app to a file by clicking
on the <i title='Save' class='fa fa-save'></i> icon in the navbar and
then on <code>Save radiant state file</code> (see also the <em>Data >
Manage</em> tab). You can open this state file at a later time or on
another computer to continue where you left off. You can also share the
file with others that may want to replicate your analyses. As an
example, load the state file <a
href="https://radiant-rstats.github.io/docs/examples/radiant-example.state.rda"><code>radiant-example.state.rda</code></a>
by clicking on the <i title='Save' class='fa fa-save'></i> icon in the
navbar and then on <code>Load radiant state file</code>. Go to <em>Data
> View</em> and <em>Data > Visualize</em> to see some of the
settings from the previous “state” of the app. There is also a report in
<em>Report > Rmd</em> that was created using the Radiant interface.
The html file
<a href="https://radiant-rstats.github.io/docs/examples/radiant-example.nb.html" target="_blank"><code>radiant-example.nb.html</code></a>
contains the output.</p>
<p>A related feature in Radiant is that state is maintained if you
accidentally navigate to another web page, close (and reopen) the
browser, and/or hit refresh. Use <code>Refresh</code> in the
<i title='Power off' class='fa fa-power-off'></i> menu in the navigation
bar to return to a clean/new state.</p>
<p>Loading and saving state also works with Rstudio. If you start
Radiant from Rstudio and use
<i title='Power off' class='fa fa-power-off'></i> > <code>Stop</code>
to stop the app, lists called <code>r_data</code>, <code>r_info</code>,
and <code>r_state</code> will be put into Rstudio’s global workspace. If
you start radiant again using <code>radiant::radiant()</code> it will
use these lists to restore state. Also, if you load a state file
directly into Rstudio it will be used when you start Radiant to recreate
a previous state.</p>
<p><strong>Technical note</strong>: Loading state works as follows in
Radiant: When an input is initialized in a Shiny app you set a default
value in the call to, for example, numericInput. In Radiant, when a
state file has been loaded and an input is initialized it looks to see
if there is a value for an input of that name in a list called
<code>r_state</code>. If there is, this value is used. The
<code>r_state</code> list is created when saving state using
<code>reactiveValuesToList(input)</code>. An example of a call to
<code>numericInput</code> is given below where the
<code>state_init</code> function from <code>radiant.R</code> is used to
check if a value from <code>r_state</code> can be used.</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" tabindex="-1"></a><span class="fu">numericInput</span>(<span class="st">"sm_comp_value"</span>, <span class="st">"Comparison value:"</span>, <span class="fu">state_init</span>(<span class="st">"sm_comp_value"</span>, <span class="dv">0</span>))</span></code></pre></div>
</div>
<div id="source-code" class="section level2">
<h2>Source code</h2>
<p>The source code for the radiant application is available on GitHub at
<a href="https://github.com/radiant-rstats"
class="uri">https://github.com/radiant-rstats</a>.
<code>radiant.data</code>, offers tools to load, save, view, visualize,
summarize, combine, and transform data. <code>radiant.design</code>
builds on <code>radiant.data</code> and adds tools for experimental
design, sampling, and sample size calculation.
<code>radiant.basics</code> covers the basics of statistical analysis
(e.g., comparing means and proportions, cross-tabs, correlation, etc.)
and includes a probability calculator. <code>radiant.model</code> covers
model estimation (e.g., logistic regression and neural networks), model
evaluation (e.g., gains chart, profit curve, confusion matrix, etc.),
and decision tools (e.g., decision analysis and simulation). Finally,
<code>radiant.multivariate</code> includes tools to generate brand maps
and conduct cluster, factor, and conjoint analysis.</p>
<p>These tools are used in the <em>Business Analytics</em>,
<em>Quantitative Analysis</em>, <em>Research for Marketing
Decisions</em>, <em>Applied Market Research</em>, <em>Consumer
Behavior</em>, <em>Experiments in Firms</em>, <em>Pricing</em>,
<em>Pricing Analytics</em>, and <em>Customer Analytics</em> classes at
the Rady School of Management (UCSD).</p>
</div>
<div id="credits" class="section level2">
<h2>Credits</h2>
<p>Radiant would not be possible without <a
href="https://cran.r-project.org/">R</a> and <a
href="https://shiny.posit.co/">Shiny</a>. I would like to thank <a
href="https://github.com/jcheng5">Joe Cheng</a>, <a
href="https://github.com/wch">Winston Chang</a>, and <a
href="https://github.com/yihui">Yihui Xie</a> for answering questions,
providing suggestions, and creating amazing tools for the R community.
Other key components used in Radiant are ggplot2, dplyr, tidyr,
magrittr, broom, shinyAce, shinyFiles, rmarkdown, and DT. For an
overview of other packages that Radiant relies on please see the
<a href="https://radiant-rstats.github.io/docs/about.html" target="_blank">about</a>
page.</p>
</div>
<div id="license" class="section level2">
<h2>License</h2>
<p>Radiant is licensed under the
<a href="https://tldrlegal.com/license/gnu-affero-general-public-license-v3-(agpl-3.0)" target="\_blank">AGPLv3</a>.
As a summary, the AGPLv3 license requires, attribution, including
copyright and license information in copies of the software, stating
changes if the code is modified, and disclosure of all source code.
Details are in the COPYING file.</p>
<p>The documentation, images, and videos for the
<code>radiant.data</code> package are licensed under the creative
commons attribution and share-alike license
<a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">CC-BY-SA</a>.
All other documentation and videos on this site, as well as the help
files for <code>radiant.design</code>, <code>radiant.basics</code>,
<code>radiant.model</code>, and <code>radiant.multivariate</code>, are
licensed under the creative commons attribution, non-commercial,
share-alike license
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC-NC-SA</a>.</p>
<p>If you are interested in using any of the radiant packages please
email me at <a href="mailto:[email protected]"
class="email">[email protected]</a></p>
</div>
© Vincent Nijs (2024) <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
<im2024t="Creative Commons License" style="border-width: 0" src="/docs/images/by-nc-sa.png" />
</a>
<!-- some extra javascript for older browsers -->
<script type="text/javascript" src="libs/polyfill.js"></script>
<!-- mathjax -->
<!-- <script type='text/javascript' src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script> -->
<script>
// manage active state of menu based on current page
$(document).ready(function () {
// active menu
href = window.location.pathname
href = href.substr(href.lastIndexOf('/') + 1)
$('a[href="' + href + '"]').parent().addClass('active');
// manage active menu header
if (href.startsWith('authoring_'))
$('a[href="' + 'authoring' + '"]').parent().addClass('active');
else if (href.endsWith('_format.html'))
$('a[href="' + 'formats' + '"]').parent().addClass('active');
else if (href.startsWith('developer_'))
$('a[href="' + 'developer' + '"]').parent().addClass('active');
});
// Google analytics
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-61296577-2', 'auto');
ga('send', 'pageview');
</script>
</div>
<script>
// add bootstrap table styles to pandoc tables
function bootstrapStylePandocTables() {
$('tr.odd').parent('tbody').parent('table').addClass('table table-condensed');
}
$(document).ready(function () {
bootstrapStylePandocTables();
});
</script>
<!-- tabsets -->
<script>
$(document).ready(function () {
window.buildTabsets("TOC");
});
$(document).ready(function () {
$('.tabset-dropdown > .nav-tabs > li').click(function () {
$(this).parent().toggleClass('nav-tabs-open');
});
});
</script>
<!-- code folding -->
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
</script>
</body>
</html>