Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Templates

The Templates page holds the wording of the paragraphs labcatalog writes. Each paragraph comes from a template: text with placeholders in braces, such as {counts} or {alpha}, that the numbers fill in. The templates are listed on the left, grouped by the part of a paper they belong to; click one to open it. A Wording button beside a paragraph on the Methods page, the Analysis page or an instrument’s page opens its template here.

Editing a template

Choosing another template, or another For, with unsaved changes asks first.

Where templates are kept

The project’s templates are written under templates in labcatalog.yaml, a study’s own Participants template to participants in its study file, and an instrument’s own Measures template to measures in its instrument file:

templates:
  participants:
    paragraph: |
      {waves} {counts} {retention}
    count: |
      At Wave {wave}, we heard from {respondents} respondents.
  measures:
    paragraph: |
      We used {named}. {description} {items} {scoring} {alpha} {omega}
  regression:
    predictor: |
      {predictor} predicted {outcome}, {statistics}.

A template names each part it changes; the others keep the built-in wording. A study’s participants and an instrument’s measures name the parts they change in the same way, and the other parts keep the project’s wording. A template with a paragraph written as one text, such as participants: "{waves} {counts}", changes only its paragraph.

TemplatePlaceholders
participantsparagraph: study, n_waves, waves, counts, demographics, retention, modalities; waves_many: n_waves, waves; waves_one: wave; wave_dated: wave, dates; wave: wave; count: wave, respondents; count_groups: those and n_groups, group, n_complete; demographics: respondents; returned: wave, previous, again, new; returned_each: n, total, respondents, percent; modality: modality, counts; modality_each: n, total, respondents, wave, share; modality_again: again; modality_again_each: n, total, previous, wave, share
measuresparagraph: name, abbreviation, cite, named, construct, reporter, n_items, scale, description, items, reverse, scoring, alpha, omega; named: name, details; named_plain: name; items: subject, n_items, scale; items_plain: subject, n_items; subject: abbreviation; scale: low, low_label, high, high_label; reverse_one and reverse_many: items; scoring: parts; scoring_method: method, scores; scoring_script: scores; score: score, n_items; reliability_one: statistic, value; reliability_many: statistic, values; reliability_each: value, score; subject_plain: none
correlationpair, pair_ns and listed: a, b, direction, statistic, r, p; count: n_pairs, n_significant, verb; strongest: n_shown, pairs; between and between_one: pairs; within: none
regressionpredictor and predictor_ns: predictor, outcome, statistics, b, se, p, r2, n; intro: none
missingall: people, variables; complete: people, complete, percent, which; each: missing, percent; range: low, low_percent, low_label, high, high_percent, high_label
groupstwo, two_ns, more and more_ns: outcome, groups, statistics, test, p, effect; group: label, statistics, m, sd
agreementicc: among, n, whom, single, mean; kappa: among, n, kappa; kappa_weighted: those and weighted; light: n_pairs, raters, light, low, high; studies: name, values; study: value, study
cfafit and exact: Model, model, package, estimation, n, fit, indicators; problem: Model, model, problem; estimation_wlsmv, estimation_mlr and estimation_ml: indicators; model_one, model_subscales, model_second_order, model_subscale_scores and model_measurement: names; loadings, loadings_general and correlations: low, high; hierarchical_omega, summed_omega and omega: omega; correlation: r; omegas: omegas; omega_each: omega, score; covariates and three_subscales: none
multileveldesign: outcome, package, observations, people; design_groups: those and groups; icc: iccs; icc_each: icc, level; fixed: terms; term: term, statistics, b, se, test, p, ci; random: variances; intercepts: sd, level; slopes: sd, level, term; slopes_r: those and r; residual: sd; singular: none
panelfit: x, y, waves, n, fit; equal, equal_worse, intercepts and intercepts_ns: change; studies and studies_worse: n_studies, change; between: r, p; lagged: predictor, outcome, b, betas, p; lagged_steps: predictor, outcome, steps; step: from_wave, to_wave, beta, p; each _study part: those and study
mediationmodel: x, y, m, package, method, n; model_asides: those and asides; moderator and moderators: moderators; paths: x, m, y, a, b; interaction and interactions: interactions; interaction_each: name, estimate; indirect: m, ab, c; indirect_total: those and total; direct: c; conditional_indirect and conditional_direct: effects; condition and condition_two: estimate, where; index: estimate; index_partial: moderator, estimate; intervals: intervals; fit: fit; factors, at_mean and at_means: none
invarianceintro: model, across; problem: model, across, problem; freed: freed; step: step, fit; step_change: step, fit, change; step_problem: step, problem; configural, thresholds, metric and scalar: none

In the Results templates, a statistic placeholder holds the symbol and the value as APA writes them (r(118) = .32, p < .001); statistic and statistics hold them all, in order. verb is “was” or “were” to agree with the count. A placeholder that is empty, such as betas when there is no standardized value, leaves no space before the comma that follows it. Some parts are phrases that fill a placeholder of another: the estimation_ and model_ parts of cfa give {estimation} and {model} ({Model} starts with a capital), the step parts of invariance give {step}, and the moderator, moderators and factors parts of mediation give {asides}, with at_mean or at_means after a moderated path. The Invariance template describes its model with the model_ parts of cfa.

See Write the Methods Section for what each Methods placeholder writes. The Problems page and labcatalog check report a template it does not know and a placeholder a template cannot use.