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¶
For: whose wording it is. The project is the wording every study or instrument uses. The Participants template can also be set for one study and the Measures template for one instrument, part by part over the project’s; the Results templates are the project’s only. A line under it says whether the wording shown is the built-in one, the project’s, or the study’s or instrument’s own.
Each template has a box for each sentence it can write, labelled with when that sentence is used, such as a correlation that is significant and one that is not. The Participants and Measures templates start with The paragraph, whose placeholders are their sentences in order, such as
{counts}for the sentences of the box labelled{counts}; text written between them goes into the paragraph as it is. The placeholders it can use are listed under it; hover over one to see what it holds (from the project’s data for the Methods templates, made up for the Results templates), and click it to put it where the cursor is. Write a literal brace as{{or}}.Save writes the template. Reset puts back the wording it falls back to (the built-in one for the project, the project’s for a study or instrument); press Save to keep it. Wording that is the same as what it falls back to is not written to any file.
Paragraph, on the right, writes the whole paragraph as you type. For the Methods templates it comes from the project’s data: the Participants paragraph for the chosen study (or the first one), the Measures paragraph for the chosen instrument (or the first one given in a dataset), without ω, which needs the factor models. For the Results templates it is a made-up result written with the wording on the left; one result uses only some of the sentences, so under each box a grey example shows that sentence alone, with made-up numbers. A placeholder a box cannot use shows as an error in red.
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.
| Template | Placeholders |
|---|---|
participants | paragraph: 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 |
measures | paragraph: 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 |
correlation | pair, 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 |
regression | predictor and predictor_ns: predictor, outcome, statistics, b, se, p, r2, n; intro: none |
missing | all: people, variables; complete: people, complete, percent, which; each: missing, percent; range: low, low_percent, low_label, high, high_percent, high_label |
groups | two, two_ns, more and more_ns: outcome, groups, statistics, test, p, effect; group: label, statistics, m, sd |
agreement | icc: 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 |
cfa | fit 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 |
multilevel | design: 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 |
panel | fit: 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 |
mediation | model: 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 |
invariance | intro: 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.