General 01: jamovi User Guide for Statistical Analysis
Source:vignettes/general-02-jamovi-user-guide.Rmd
general-02-jamovi-user-guide.Rmd
jamovi User Guide: A Statistics Crash Course for Pathologists and Clinicians
This comprehensive guide introduces jamovi as a powerful, user-friendly statistical software for medical research. jamovi provides point-and-click access to sophisticated statistical analyses without requiring programming knowledge, making it ideal for pathologists and clinicians who need to analyze research data.
Installation
Installing jjstatsplot in jamovi
- Open jamovi
- Access Modules: Click the “Modules” button (⊞) in the top menu
- Open jamovi library: Select “jamovi library” from the dropdown
- Search: Type “jjstatsplot” in the search box
- Install: Click the “Install” button next to jjstatsplot
- Restart: Close and reopen jamovi to activate the module
Understanding the Interface
Menu Organization
The jjstatsplot analyses are organized by data type:
- Continuous: Histogram
-
Continuous vs Continuous: Scatter Plot, Correlation
Matrix
- Categorical vs Continuous: Box-Violin Plots, Dot Charts
- Categorical vs Categorical: Bar Charts, Pie Charts
- Distribution: Waffle Charts
Common Interface Elements
All jjstatsplot analyses share similar interface components:
Data Types and Requirements
Analysis Walkthrough
1. Histogram Analysis
Use case: Explore the distribution of a continuous variable
Steps: 1. Navigate to JJStatsPlot → Continuous → Histogram 2. Move your continuous variable to Dependent Variable 3. Optional: Add a Grouping Variable for separate histograms 4. Customize in Options: - Statistical: Choose normality test type - Plot: Adjust bins, colors, theme - Labels: Add title, axis labels
Example Output: - Histogram with density curve - Normality test results - Descriptive statistics overlay
2. Scatter Plot Analysis
Use case: Examine relationship between two continuous variables
Steps: 1. Go to JJStatsPlot → Continuous vs Continuous → Scatter Plot 2. Set Dependent Variable (Y-axis) 3. Set Grouping Variable (X-axis) 4. Optional: Add Grouping Variable for Plots for separate panels 5. Configure Options: - Statistical: Correlation test, regression line - Plot: Point style, smoothing method - Marginal plots: Add distribution plots to margins
Example Output: - Scatter plot with regression line - Correlation coefficient and significance - Confidence intervals - Marginal distribution plots (optional)
3. Box-Violin Plots (Between Groups)
Use case: Compare continuous variable across different groups
Steps: 1. Select JJStatsPlot → Categorical vs Continuous → Box-Violin Plots (Between Groups) 2. Add continuous variable to Dependent Variable 3. Add grouping variable to Grouping Variable 4. Adjust Options: - Statistical: Choose comparison test (t-test, ANOVA, non-parametric) - Plot: Combine box and violin plots - Pairwise: Enable post-hoc comparisons
Example Output: - Combined box and violin plots - Statistical test results - Effect size measures - Pairwise comparison results
4. Correlation Matrix
Use case: Explore relationships among multiple continuous variables
Steps: 1. Navigate to JJStatsPlot → Continuous vs Continuous → Correlation Matrix 2. Select multiple variables for Dependent Variables 3. Optional: Add Grouping Variable for Plots 4. Customize Options: - Statistical: Correlation method (Pearson, Spearman) - Plot: Color scheme, significance marking - Matrix type: Full, upper, or lower triangle
Example Output: - Color-coded correlation matrix - Significance indicators - Correlation coefficients
5. Bar Charts
Use case: Visualize frequency or proportions of categorical variables
Steps: 1. Go to JJStatsPlot → Categorical vs Categorical → Bar Charts 2. Set Dependent Variable (categories to count) 3. Optional: Set Grouping Variable for grouped bars 4. Configure Options: - Statistical: Chi-square test, effect size - Plot: Bar orientation, colors - Labels: Show counts, percentages
Example Output: - Bar chart with counts/proportions - Chi-square test results - Effect size (Cramér’s V)
Advanced Features
Grouped Analysis
Most analyses support grouped analysis:
- Multiple Dependent Variables: Creates subplot for each variable
- Grouping Variable for Plots: Creates separate plot for each group level
- Combination: Multiple variables × multiple groups = grid of plots
Troubleshooting Common Issues
“No data to plot” Error
- Check: Ensure variables are selected correctly
- Missing data: Variables with all missing values can’t be plotted
- Variable type: Ensure variable types match analysis requirements
Tips for Better Visualizations
1. Variable Selection
- Meaningful groupings: Choose grouping variables with 2-8 levels
- Sufficient data: Ensure adequate observations per group
- Relevant comparisons: Select variables that make theoretical sense
Example Workflow
Research Question: “Does engine type affect fuel efficiency?”
Data: Load dataset with
mpg
(continuous) andvs
(engine type, categorical)-
Exploratory Analysis:
-
Histogram: Examine
mpg
distribution -
Box-Violin Plot: Compare
mpg
betweenvs
groups
-
Histogram: Examine
-
Detailed Analysis:
- Use Box-Violin Plots (Between Groups)
- Set
mpg
as Dependent Variable - Set
vs
as Grouping Variable - Enable statistical tests and effect sizes
-
Interpretation:
- Examine group differences in plots
- Report statistical test results
- Include effect size measures
Best Practices
Statistical Reporting
- Always report effect sizes alongside p-values
- Check and report assumption violations
- Use appropriate tests for your data type and distribution
Getting Help
Resources
- ggstatsplot documentation: indrajeetpatil.github.io/ggstatsplot
- jamovi community: forum.jamovi.org
- GitHub issues: github.com/sbalci/ClinicoPathJamoviModule/issues
Support
- Check jamovi forum for similar questions
- Report bugs via GitHub issues
- Include sample data and screenshots when asking for help
This guide provides a foundation for using jjstatsplot effectively in jamovi. Each analysis type offers extensive customization options - experiment with different settings to find what works best for your research needs.