Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bf8a541
Initial plan
Copilot Apr 16, 2026
a6ec77a
fix: clarify HERS causal goal and confounder definition in predictor …
Copilot Apr 16, 2026
e036c71
Merge main into branch and update WCGS DAG causal framing
Copilot Apr 17, 2026
b464427
Refine WCGS DAG assumptions and simplify confounder wording
Copilot Apr 17, 2026
668a2cb
Add prediction metrics definitions and overfitting example
Copilot Apr 17, 2026
2adf20d
Refine overfitting example code clarity in prediction section
Copilot Apr 17, 2026
f5e3326
Add iterative 10 percent rule BWE workflow for WCGS confounders
Copilot Apr 17, 2026
590bb55
Refine BWE section formatting and citation detail
Copilot Apr 17, 2026
2055aeb
Refactor BWE code clarity in WCGS 10 percent section
Copilot Apr 17, 2026
5efc92b
Address review thread citations and shared HERS intro consolidation
Copilot Apr 17, 2026
ece4666
Polish 10 percent citations and remove duplicated HERS count
Copilot Apr 17, 2026
4ea0880
Add transition text after shared HERS intro include
Copilot Apr 17, 2026
2e24a25
Refine HERS intro phrasing and DAG transition wording
Copilot Apr 17, 2026
cdd6d8c
Restore landscape-table guidance and correct HERS objective wording
Copilot Apr 17, 2026
7b61dde
Update WCGS DAG naming/layout and add HERS/WCGS data dictionaries
Copilot Apr 17, 2026
bf2bd50
Fix data-dictionary caption placement in predictor DAG section
Copilot Apr 17, 2026
cd70aee
Update _sec-pred-sel-dag.qmd
d-morrison Apr 17, 2026
4f8724f
Apply review-thread updates for predictor selection and citations
Copilot Apr 17, 2026
a0ff2b8
Address remaining review nits for HERS citations and WCGS formula rob…
Copilot Apr 17, 2026
4126e84
Merge branch 'main' into copilot/edit-predictor-selection-chapter
d-morrison Apr 18, 2026
ead43bf
Merge branch 'main' into copilot/edit-predictor-selection-chapter
d-morrison Apr 20, 2026
6780abf
Merge origin/main and resolve conflicts preferring branch content
Copilot Apr 20, 2026
c0c2275
Merge latest origin/main and resolve conflicts
Copilot Apr 20, 2026
e7927d3
Merge branch 'main' into copilot/edit-predictor-selection-chapter
d-morrison Apr 20, 2026
971da91
Apply review-thread citation and formatting fixes
Copilot Apr 21, 2026
3901fc4
Merge branch 'main' into copilot/edit-predictor-selection-chapter
d-morrison Apr 21, 2026
42af1d4
Merge branch 'main' into copilot/edit-predictor-selection-chapter
d-morrison Apr 21, 2026
5ee7750
Merge remote-tracking branch 'origin/main' into copilot/edit-predicto…
Copilot Apr 22, 2026
77ca8cb
chore: plan unresolved comment follow-ups
Copilot Apr 23, 2026
1342e63
Address unresolved review comments in predictor-selection goals and a…
Copilot Apr 23, 2026
fcd8074
chore: plan merge-conflict resolution
Copilot Apr 23, 2026
f2c42d4
Merge origin/main to resolve PR conflicts
Copilot Apr 23, 2026
d910382
Restore page-number locator examples in citation-format guidance
Copilot Apr 23, 2026
f09ad6f
Merge origin/main and resolve latex-macros submodule conflict
Copilot Apr 23, 2026
b93c01d
Merge origin/main and resolve latex-macros submodule conflict again
Copilot Apr 27, 2026
8074a34
Merge remote-tracking branch 'origin/main' into copilot/edit-predicto…
Copilot Apr 27, 2026
5103e7a
Merge remote-tracking branch 'origin/main' into copilot/edit-predicto…
Copilot Apr 28, 2026
bd9efaa
Merge remote-tracking branch 'origin/main' into copilot/edit-predicto…
Copilot Apr 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 106 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,44 @@ This follows the [Quarto website linking guidelines](https://quarto.org/docs/web

This ensures links work correctly across all output formats and during local development.

## Subfile Structure Convention
## Attribution for Adapted Content

When content is adapted from published sources (textbooks, papers, websites),
**always provide explicit attribution** in the document.
Use `@citekey` Pandoc citation syntax and include a prose note explaining what was adapted.

Examples of acceptable attribution:

- "Adapted from @vittinghoff2e [Chapter 10]."
- "The following example is based on @kleinbaum2010logistic [Chapter 8]."
- "This approach follows @hulley1998hers."

Attribution should appear:

- At the top of the chapter or section (in the Acknowledgements or Introduction),
*or*
- Adjacent to the specific content being adapted (as a prose sentence or in a `::: notes` div).

Comment thread
d-morrison marked this conversation as resolved.
**Always include chapter and/or page numbers** in inline citations where applicable,
so that readers can locate the source material.
Use Pandoc's citation locator syntax: `[@citekey, Chapter 8]` or `[@citekey, p. 194]`.
Include both chapter and page when both are known.
Do **not** invent page numbers.
Only cite a page after opening the source PDF
and confirming the exact page.
If you have not verified a page directly from the source PDF,
cite chapter-level location only.

Examples of attribution with page numbers
(formatting examples):

- "Adapted from [@vittinghoff2e, Chapter 10, p. 194]."
- "The following example is based on [@kleinbaum2010logistic, Chapter 8, p. 230]."

Do **not** reproduce verbatim text from copyrighted sources without clear quotation marks and attribution.
Paraphrase and summarize with a citation instead.

## Decomposing content into subfiles

Quarto subfiles (files under `_subfiles/`) should **not** begin with a section heading.
The heading for a subfile's content should be placed in the **parent** file that includes the subfile,
Expand Down Expand Up @@ -96,7 +133,27 @@ This applies whether the citation refers to one author or multiple authors (e.g.
Pandoc renders `@dobson4e` as a noun phrase (e.g., "Dobson and Barnett (2018)"),
but grammatically the citation key itself is treated as a singular pronoun/name.

## Attribution for Adapted Content
## DAG Naming for Categorical Variables

In DAGs,
use node names that represent the full categorical variable,
not a specific level of that variable.

Example:
use `personality_type`,
not `TypeA`.

## Evidence and Source Citation Requirements

For factual claims that are not directly proved in the text,
always include a specific source citation.
Do not leave factual statements uncited.

Always cite papers and books using
BibTeX entries in `references.bib`
and Quarto/Pandoc citation syntax
(for example `[@MickeyGreenland1989]`),
rather than plaintext author-date references.

When adapting any content from another source,
always include specific attribution in the chapter text.
Expand Down Expand Up @@ -250,6 +307,53 @@ Use this pattern:
Apply this only where needed,
so HTML and RevealJS output stay unchanged.

## Figures and Tables: Use Div Format

Prefer the **Quarto div format** for new figures and tables
rather than chunk-option `fig-cap`/`tbl-cap`.
The div format makes it easier to write and format multi-sentence captions.
Comment thread
d-morrison marked this conversation as resolved.
Existing chunk-option captions in older files are acceptable
unless you are already refactoring that content.

**Correct** (div format):
````qmd
::: {#fig-my-figure}

```{r}
plot(x, y)
```

Caption text here.
This can span multiple lines and include *markdown*.

:::
````

**Correct** (div format for tables):
````qmd
::: {#tbl-my-table}

```{r}
my_table
```

Caption text here.

:::
````

**Incorrect** (chunk option format):
````qmd
```{r}
#| label: fig-my-figure
#| fig-cap: "Caption text here."
plot(x, y)
```
````

Use this for newly added or substantially revised figures and tables in `.qmd` files.


## Math Notation

This repository uses custom LaTeX macros defined in `latex-macros/macros.qmd` (a git submodule).
Expand Down
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Imports:
Suggests:
tidyverse,
conflicted,
dagitty,
dplyr,
eha,
ggfortify,
Expand Down
1 change: 1 addition & 0 deletions _quarto-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ book:
- Linear-models-overview.qmd
- logistic-regression.qmd
- count-regression.qmd
- predictor-selection.qmd
- intro-multilevel-models.qmd
- part: time-to-event-models.qmd
chapters:
Expand Down
1 change: 1 addition & 0 deletions _quarto-revealjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ project:
- "intro-bayes.qmd"
- "common-mistakes.qmd"
- "notation.qmd"
- "predictor-selection.qmd"
- "intro-to-R.qmd"
- "exam-formula-sheet.qmd"

Expand Down
3 changes: 3 additions & 0 deletions _quarto-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ project:
- Linear-models-overview.qmd
- logistic-regression.qmd
- count-regression.qmd
- predictor-selection.qmd
- intro-multilevel-models.qmd
- time-to-event-models.qmd
- intro-to-survival-analysis.qmd
Expand Down Expand Up @@ -68,6 +69,8 @@ website:
href: logistic-regression.qmd
- text: "Count Regression"
href: count-regression.qmd
- text: "Predictor Selection"
href: predictor-selection.qmd
- text: "Multilevel Models"
href: intro-multilevel-models.qmd
- text: "---"
Expand Down
Loading
Loading