Analysis Definition

The analysis definition is a YAML file in the jamovi/ directory with the extension .a.yaml. It describes the analysis metadata, how it appears in the jamovi menus, and the options (parameters) it requires.

The header section of the .a.yaml file defines the analysis identity and its placement in the UI. The file must be named to match the name of the analysis, but converted to lowercase (e.g., ttestis.a.yaml).

---
name:  TTestIS
title: Independent Samples T-Test
menuGroup: T-Tests
version: '1.0.0'
jas: '1.0'

options:
    - name: ...
      type: ...
    - name: ...
      type: ...
propertyfunction
namethe name of the analysis. camel case. underscores are discouraged, dots are verboten.
titlethe title of the analysis in title case.
versionthe version of the analysis. should make use of semantic versioning.
jasthe jamovi analysis spec. should be ‘1.0’. must be wrapped in quotes to prevent it being interpretted as a number.
menuGroupthe name of the top level menu where the analysis should appear. for plot modules, use . to place the analysis at the root of the Plots tab.
menuSubgroup(optional) places the menu entry under a subheading.
menuTitle(optional) the title to be used in the menu. if unspecified, then the title is used.
menuSubtitle(optional) additional text placed to the lower right of the menu entry.
category(optional) analyses (default) or plots. Determines which jamovi tab the analysis appears in. See Plot Modules before using plots.
optionsan array of options that the analysis requires. these are described in greater detail below.

Options

Options represent the parameters that an analysis requires in order to run. When a jamovi module is used as an R package, they represent the arguments to the function. When used in jamovi itself, they represent the user interface (UI) options presented to the user.

Each option has a name, a type, and some additional properties. When a value is specified by the user, the option checks the value and produces an error if the value is not suitable.

Option Types

The following option types are available in jamovi:

TypeDescription
DataThe primary dataset for the analysis.
BoolA true/false toggle (UI: Checkbox).
IntegerA whole number input.
NumberA decimal number input.
ListA selection from a predefined set of values.
VariableA single variable selection from the dataset.
VariablesMultiple variable selections from the dataset.
TermsModel terms, including main effects and interactions.
GroupA container for organizing other options.
ActionA button that triggers a specific task.

For a detailed look at how to interact with these options in your R code, see the Options API (R) documentation.