<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/jamovi-for-r-easy-but-controversial/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/"> R – r4stats.com</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="https://www.jamovi.org/" target="_blank">jamovi</a> is software that aims to simplify two aspects of using R. It offers a point-and-click graphical user interface (GUI). It also provides functions that combines the capabilities of many others, bringing a more SPSS- or SAS-like method of programming to R.</p>
<p>The ideal researcher would be an expert at their chosen field of study, data analysis, and computer programming. However, staying good at programming requires regular practice, and data collection on each project can take months or years. GUIs are ideal for people who only analyze data occasionally,  since they only require you to recognize what you need in menus and dialog boxes, rather than having to recall programming statements from memory. This is likely why GUI-based research tools have been widely used in <a rel="nofollow" href="http://r4stats.com/articles/popularity/" target="_blank">academic research</a> for many years.</p>
<p>Several attempts have been made to make the powerful R language accessible to occasional users, including <a rel="nofollow" href="http://www.rcommander.com/" target="_blank">R Commander</a>, <a rel="nofollow" href="http://www.deducer.org/" target="_blank">Deducer</a>, <a rel="nofollow" href="https://rattle.togaware.com/" target="_blank">Rattle</a>, and <a rel="nofollow" href="https://www.blueskystatistics.com/" target="_blank">Bluesky Statistics</a>. R Commander has been particularly successful, with over 40 <a rel="nofollow" href="https://cran.r-project.org/web/packages/available_packages_by_name.html" target="_blank">plug-ins</a> available for it. As helpful as those tools are, they lack the key element of reproducibility (more on that later).</p>
<p>jamovi’s developers designed its GUI to be familiar to SPSS users. Their goal is to have the most widely used parts of SPSS implemented by August of 2018, and they are well on their way. To use it, you simply click on Data>Open and select a comma separate values file (other formats will be supported soon). It will guess at the type of data in each column, which you can check and/or change by choosing Data>Setup and picking from: Continuous, Ordinal, Nominal, or Nominal Text.</p>
<p>Alternately, you could enter data manually in jamovi’s data editor. It accepts numeric, scientific notation, and character data, but not dates. Its default format is numeric, but when given text strings, it converts automatically to Nominal Text. If that was a typo, deleting it converts it immediately back to numeric. I missed some features such as finding data values or variable names, or pinning an ID column in place while scrolling across columns.</p>
<p>To analyze data, you click on jamovi’s Analysis tab. There, each menu item contains a drop-down list of various popular methods of statistical analysis. In the image below, I clicked on the ANOVA menu, and chose ANOVA to do a factorial analysis. I dragged the variables into the various model roles, and then chose the options I wanted. As I clicked on each option, its output appeared immediately in the window on the right. It’s well established that immediate feedback accelerates learning, so this is much better than having to click “Run” each time, and then go searching around the output to see what changed.</p>
<p><a rel="nofollow" href="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Jamovi-Screen-w-Menu-Shown-2.png" target="_blank"><img data-orig-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Jamovi-Screen-w-Menu-Shown-2.png?fit=1480%2C1089" data-orig-size="1480,1089" data-medium-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Jamovi-Screen-w-Menu-Shown-2.png?fit=300%2C221" data-attachment-id="2379" data-image-meta="{" data-image-description="" src="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Jamovi-Screen-w-Menu-Shown-2.png?resize=640%2C471" data-permalink="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/jamovi-screen-w-menu-shown-2/" data-large-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Jamovi-Screen-w-Menu-Shown-2.png?fit=640%2C471" alt="" data-image-title="Jamovi Screen w Menu Shown 2" sizes="(max-width: 640px) 100vw, 640px" width="450" data-comments-opened="1" class="wp-image-2379" data-recalc-dims="1"></a></p>
<p>The tabular output is done in academic journal style by default, and when pasted into Microsoft Word, it’s a table object ready to edit or publish:</p>
<p><a rel="nofollow" href="https://i1.wp.com/r4stats.com/wp-content/uploads/2018/02/ANOVA-output.png" target="_blank"><img data-orig-file="https://i1.wp.com/r4stats.com/wp-content/uploads/2018/02/ANOVA-output.png?fit=579%2C191" data-orig-size="579,191" data-medium-file="https://i1.wp.com/r4stats.com/wp-content/uploads/2018/02/ANOVA-output.png?fit=300%2C99" data-attachment-id="2366" data-image-meta="{" data-image-description="" src="https://i1.wp.com/r4stats.com/wp-content/uploads/2018/02/ANOVA-output.png?resize=579%2C191" data-permalink="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/anova-output-2/" data-large-file="https://i1.wp.com/r4stats.com/wp-content/uploads/2018/02/ANOVA-output.png?fit=579%2C191" alt="" data-image-title="ANOVA output" sizes="(max-width: 579px) 100vw, 579px" width="450" data-comments-opened="1" class="wp-image-2366" data-recalc-dims="1"></a></p>
<p>You have the choice of copying a single table or graph, or a particular analysis with all its tables and graphs at once. Here’s an example of its graphical output:</p>
<div class="wp-caption"><a rel="nofollow" href="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Interaction-Plot.png" target="_blank"><img data-orig-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Interaction-Plot.png?fit=1000%2C600" data-orig-size="1000,600" data-medium-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Interaction-Plot.png?fit=300%2C180" data-attachment-id="2367" data-image-meta="{" data-image-description="" src="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Interaction-Plot.png?resize=640%2C384" data-permalink="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/interaction-plot/" data-large-file="https://i0.wp.com/r4stats.com/wp-content/uploads/2018/02/Interaction-Plot.png?fit=640%2C384" alt="" data-image-title="Interaction Plot" sizes="(max-width: 640px) 100vw, 640px" width="450" data-comments-opened="1" class="wp-image-2367" data-recalc-dims="1"></a>
<p class="wp-caption-text">Interaction plot from jamovi using the “Hadley” style. Note how it offsets the confidence intervals to for each workshop automatically to make them easier to read when they overlap.</p>
</div>
<p>jamovi offers four styles for graphics: <em>default</em> a simple one with plain background, <em>minimal</em> which – oddly enough – adds a grid at the major tick-points; <em>I<img alt="♥" src="https://i1.wp.com/s.w.org/images/core/emoji/2.4/72x72/2665.png?w=456&ssl=1" class="wp-smiley" data-recalc-dims="1">SPSS</em>, which copies the look of that software; and <em>Hadley</em>, which follows the style of Hadley Wickham’s popular <a rel="nofollow" href="http://r4stats.com/examples/graphics-ggplot2/" target="_blank">ggplot2 package</a>.</p>
<p>At the moment, nearly all graphs are produced through analyses. A set of graphics menus is in the works. I hope the developers will be able to offer full control over custom graphics similar to Ian Fellows’ powerful <a rel="nofollow" href="https://youtu.be/-Rym6Ucraes" target="_blank">Plot Builder</a> used in his Deducer GUI.</p>
<p>The graphical output looks fine on a computer screen, but when using copy-paste into Word, it is a fairly low-resolution bitmap. To get higher resolution images, you must right click on it and choose Save As from the menu to write the image to SVG, EPS, or PDF files. Windows users will see those options on the usual drop-down menu, but a bug in the Mac version blocks that. However, manually adding the appropriate extension will cause it to write the chosen format.</p>
<p>jamovi offers full reproducibility, and it is one of the few menu-based GUIs to do so. Menu-based tools such as SPSS or R Commander offer reproducibility via the programming code the GUI creates as people make menu selections. However, the settings in the dialog boxes are not currently saved from session to session. Since point-and-click users are often unable to understand that code, it’s not reproducible <em>to them</em>. A jamovi file contains: the data, the dialog-box settings, the syntax used, and the output. When you re-open one, it is as if you just performed all the analyses and never left. So if your data collection process came up with a few more observations, or if you found a data entry error, making the changes will automatically recalculate the analyses that would be affected (and no others).</p>
<p>While jamovi offers reproducibility, it does not offer <em>reusability</em>. Variable transformations and analysis steps are saved, and can be changed, but the data input data set cannot be changed. This is tantalizingly close to full reusability; if the developers allowed you to choose another data set (e.g. apply last week’s analysis to this week’s data) it would be a powerful and fairly unique feature. The new data would have to contain variables with the same names, of course. At the moment, only workflow-based GUIs such as <a rel="nofollow" href="https://www.knime.com/" target="_blank">KNIME</a> offer re-usability in a graphical form.</p>
<p>As nice as the output is, it’s missing some very important features. In a complex analysis, it’s all too easy to lose track of what’s what. It needs a way to change the title of each set of output, and all pieces of output need to be clearly labeled (e.g. which sums of squares approach was used). The output needs the ability to collapse into an outline form to assist in finding a particular analysis, and also allow for dragging the collapsed analyses into a different order.</p>
<p>Another output feature that would be helpful would be to export the entire set of analyses to Microsoft Word. Currently you can find Export>Results under the main “hamburger” menu (upper left of screen). However, that saves only PDF and HTML formats. While you can force Word to open the HTML document, the less computer-savvy users that jamovi targets may not know how to do that. In addition, Word will not display the graphs when the output is exported to HTML. However, opening the HTML file in a browser shows that the images have indeed been saved.</p>
<p>Behind the scenes, jamovi’s menus convert its dialog box settings into a set of function calls from its own jmv package. The calculations in these functions are borrowed from the functions in other established packages. Therefore the accuracy of the calculations should already be well tested. Citations are not yet included in the package, but adding them is on the developers’ to-do list.</p>
<p>If functions already existed to perform these calculations, why did jamovi’s developers decide to develop their own set of functions? The answer is sure to be controversial: to develop a version of the R language that works more like the SPSS or SAS languages. Those languages provide output that is optimized for legibility rather than for further analysis. It is attractive, easy to read, and concise. For example, to compare the t-test and non-parametric analyses on two variables using base R function would look like this:</p>
<pre>> t.test(pretest ~ gender, data = mydata100)

Welch Two Sample t-test

data: pretest by gender
t = -0.66251, df = 97.725, p-value = 0.5092
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -2.810931 1.403879
sample estimates:
mean in group Female mean in group Male 
 74.60417 75.30769

> wilcox.test(pretest ~ gender, data = mydata100)

Wilcoxon rank sum test with continuity correction

data: pretest by gender
W = 1133, p-value = 0.4283
alternative hypothesis: true location shift is not equal to 0

> t.test(posttest ~ gender, data = mydata100)

Welch Two Sample t-test

data: posttest by gender
t = -0.57528, df = 97.312, p-value = 0.5664
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -3.365939 1.853119
sample estimates:
mean in group Female mean in group Male 
 81.66667 82.42308

> wilcox.test(posttest ~ gender, data = mydata100)

Wilcoxon rank sum test with continuity correction

data: posttest by gender
W = 1151, p-value = 0.5049
alternative hypothesis: true location shift is not equal to 0</pre>
<p>While the same comparison using the jamovi GUI, or its jmv package, would look like this:</p>
<div class="wp-caption"><a rel="nofollow" href="https://i2.wp.com/r4stats.com/wp-content/uploads/2018/02/t-tests-from-Jamovi-GUI-5.png" target="_blank"><img data-orig-file="https://i2.wp.com/r4stats.com/wp-content/uploads/2018/02/t-tests-from-Jamovi-GUI-5.png?fit=724%2C205" data-orig-size="724,205" data-medium-file="https://i2.wp.com/r4stats.com/wp-content/uploads/2018/02/t-tests-from-Jamovi-GUI-5.png?fit=300%2C85" data-attachment-id="2395" data-image-meta="{" data-image-description="" src="https://i2.wp.com/r4stats.com/wp-content/uploads/2018/02/t-tests-from-Jamovi-GUI-5.png?resize=640%2C181" data-permalink="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/t-tests-from-jamovi-gui-5/" data-large-file="https://i2.wp.com/r4stats.com/wp-content/uploads/2018/02/t-tests-from-Jamovi-GUI-5.png?fit=640%2C181" alt="" data-image-title="t-tests from Jamovi GUI 5" sizes="(max-width: 640px) 100vw, 640px" width="450" data-comments-opened="1" class="wp-image-2395" data-recalc-dims="1"></a>
<p class="wp-caption-text">Output from jamovi or its jmv package.</p>
</div>
<p>Behind the scenes, the jamovi GUI was executing the following function call from the jmv package. You could type this into RStudio to get the same result:</p>
<pre>library(&quot;jmv&quot;)
ttestIS(
 data = mydata100,
 vars = c(&quot;pretest&quot;, &quot;posttest&quot;),
 group = &quot;gender&quot;,
 mann = TRUE,
 meanDiff = TRUE)</pre>
<p>In jamovi (and in SAS/SPSS), there is one command that does an entire analysis. For example, you can use a single function to get: the equation parameters, t-tests on the parameters, an anova table, predicted values, and diagnostic plots. In R, those are usually done with five functions: lm, summary, anova, predict, and plot. In jamovi’s jmv package, a single linReg function does all those steps and more.</p>
<p>The impact of this design is very significant. By comparison, R Commander’s menus match R’s piecemeal programming style. So for linear modeling there are over 25 relevant menu choices spread across the Graphics, Statistics, and Models menus. Which of those apply to regression? You have to recall. In jamovi, choosing Linear Regression from the Regression menu leads you to a single dialog box, where all the choices are relevant. There are still over 20 items from which to choose (jamovi doesn’t do as much as R Commander yet), but you know they’re all useful.</p>
<p>jamovi has a syntax mode that shows you the functions that it used to create the output (under the triple-dot menu in the upper right of the screen). These functions come with the jmv package, which is available on the CRAN repository like any other. You can use jamovi’s syntax mode to learn how to program R from memory, but of course it uses jmv’s all-in-one style of commands instead of R’s piecemeal commands. It will be very interesting to see if the jmv functions become popular with programmers, rather than just GUI users. While it’s a radical change, R has seen other radical programming shifts such as the use of the <a rel="nofollow" href="https://www.tidyverse.org/" target="_blank">tidyverse</a> functions.</p>
<p>jamovi’s developers recognize the value of R’s piecemeal approach, but they want to provide an alternative that would be easier to learn for people who don’t need the additional flexibility.</p>
<p>As we have seen, jamovi’s approach has simplified its menus, and R functions, but it offers a third level of simplification: by combining the functions from 20 different packages (displayed when you install jmv), you can install them all in a single step and control them through jmv function calls. This is a controversial design decision, but one that makes sense to their overall goal.</p>
<p>Extending jamovi’s menus is done through add-on modules that are stored in an online repository called the jamovi Library. To see what’s available, you simply click on the large “+ Modules” icon at the upper right of the jamovi window. There are only nine available as I write this (2/12/2018) but the developers have made it fairly easy to bring any R package into the jamovi Library. Creating a menu front-end for a function is easy, but creating publication quality output takes more work.</p>
<p>A limitation in the current release is that data transformations are done one variable at a time. As a result, setting measurement level, taking logarithms, recoding, etc. cannot yet be done on a whole set of variables. This is on the developers to-do list.</p>
<p>Other features I miss include group-by (split-file) analyses and output management. For a discussion of this topic, see my post, <a rel="nofollow" href="http://r4stats.com/2017/04/18/group-by-modeling-in-r-made-easy/" target="_blank">Group-By Modeling in R Made Easy</a>.</p>
<p>Another feature that would be helpful is the ability to correct p-values wherever dialog boxes encourage multiple testing by allowing you to select multiple variables (e.g. t-test, contingency tables). R Commander offers this feature for correlation matrices (one I contributed to it) and it helps people understand that the problem with multiple testing is not limited to post-hoc comparisons (for which jamovi does offer to correct p-values).</p>
<p>Though only at version 0.8.1.2.0, I only found only two minor bugs in quite a lot of testing. After asking for post-hoc comparisons, I later found that un-checking the selection box would not make them go away. The other bug I described above when discussing the export of graphics. The developers consider jamovi to be “production ready” and a number of universities are already using it in their undergraduate statistics programs.</p>
<p>In summary, jamovi offers both an easy to use graphical user interface plus a set of functions that combines the capabilities of many others. If its developers, Jonathan Love, Damian Dropmann, and Ravi Selker, complete their goal of matching SPSS’ basic capabilities, I expect it to become very popular. The only skill you need to use it is the ability to use a spreadsheet like Excel. That’s a far larger population of users than those who are good programmers. I look forward to trying jamovi 1.0 this August!</p>
<h3>Acknowledgements</h3>
<p>Thanks to Jonathon Love, Josh Price, and Christina Peterson for suggestions that significantly improved this post.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://r4stats.com/2018/02/13/jamovi-for-r-easy-but-controversial/"> R – r4stats.com</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/aULbqkFm4LA" height="1"></a></div>