It's getting real! Today we will start analyzing the data we downloaded and cleaned in Days 1 & 2. The goal is not to learn/review inferential statistics. The goal for this section is to demonstrate how to be effective at describing your data -- which is the first step of all analyses -- Know thy data. Therefore, we learn how to present what should always be (imho) the first two tables in any publication -- the table of descriptive statistics (i.e., Table 1) and some representation of the relationships in your data (Table 2, Figure 1, etc.)
First, let's get a sense of the type of visualizations that are offered in jamovi and JASP. Whereas SPSS graphics have much improved over the past decade, they are still really poor in comparison. So, I will make a chart or two in SPSS so you know how it is done, but we will focus on the other software for visualization.
You can become familiar with R coding through the JASP interface. We don't have time in this bootcamp to go through many examples of this, but I show you how to get JASP to show you the R syntax it is using to run the analysis you did in JASP.
If you click the R symbol
You can also display all of the code for all of the analyses you have run by scrolling to the very top of the output in the main Results tab and selecting 'Show R Syntax' (see below)
This video has a great explanation of the R console in JASP, if you want to learn take a look!
The type of visualization you choose depends on the type of data you have. For example, to make a frequency distribution you need categorical data. If you have continuous data – the appropriate visualization is a distribution plot with density. A major benefit using jamovi and JASP is that neither will allow you to run analyses with the wrong data type, and so they both offer good ways to learn about data.
Data collected over time is called longitudinal data
By adding the additional modules, we have more functionality. The two best visualizations are found in jjstatsplot and flexplot. Let's explore the functionality of these modules using the dataset BigFiveInventory.csv. This data contains 6 variables, the Big Five Personality Traits (Extraversion, Openness, Conscientiousness, Neuroticism, and Agreeableness) & Gender.
From the file menu click 'Analyses' and then 'Exploration' --> 'Descriptives'.
Get a descriptive summary of each variable
You will see the following output
Using jamovi (and JASP) to display APA formatted results Notice that unlike SPSS, the table is already APA formatted.
I just submitted this poster to the International Summit on Violence, Trauma and Abuse: Associations Between Non-suicidal Self-harm and Adverse Childhood Experiences among Cis- and Trans- gender Adults I relied heavily on the visualizations shown below.
The next few examples use data from Bootcamp/ex/Exploration/Big Five Personality Traits.omv
Histograms
- The add-on module 'esci' has some cool visualization tools including for histogram and dot plots. We installed this Day 1
- Under Analysis click "esci" and then "Descriptives"
- In the Measure text box move the variable "Neuroticism"
- In the 'Distribution-Graph Options' click Histogram and then make sure the following options are specified
You should get the following chart
Even fancier! Make this multivariate and include gender!
Note: There is a major drawback to using jamovi and JASP which is, in a nutshell, these are not very customizable. This is another good reason to use R!
However, we can customize somewhat if we are creative. For example, if we wanted to have the words "male" and "female" in the legend instead of "1" and "2", we can recode the variable as we learned before and use that variable.
both JASP and jamovi have a module named Flexplot that can make a similar scatterplot
In jamovi, click Flexplot from the Analysis menu
Let's first recreate the plot above
There is another cool option that facilitates visualization. It is called an Added Variable Plot.
- An added variable plot plots the effect of one variable on another with a third variable removed (i.e. controlled for). Let's see how this works
- First, lets look at Neuroticism and Extraversion
Now let's see the relationship after removing the effect of gender
Notice the y-axis changed from Neuroticism to Neuroticism|Gender to reflect that gender is now being controlled for. The chart is basically the same, which suggests gender has little impact on this relationship. To recreate this chart, use the following specifications:
We make want to visualize the correlations between variables rather than report them (for example Table 2 above). The best correlation plot in jamovi is from the package jjstatsplot. (There are other ways to do this but they are clunky and as I said before you don't have much control over the output)
From the Analyses menu click 'jjstatsplot' and the Correlation Matrix. Put all the Big 5 variables into the dependent variable dialog box. Then to get the best visualization select the following options
You should see the following correlation matrix
Which correlations are the strongest?
To demonstrate how to create an alluvial diagram, I am going to use data on Fatal police shootings collected by the Washington Post.