Skip to content

Commit 31e50b4

Browse files
Amend wording for using case_index_date for controls
Co-authored-by: Alex Walker <[email protected]>
1 parent 4e7818f commit 31e50b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/case-control-studies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ dataset.define_population(
154154
Don't forget to add additional population constraints to the dataset if you require them!
155155

156156
Since the `case_index_date` column in `matched_patients` is now accessible,
157-
we can use it to define columns of *non-matching data* in our dataset.
157+
we can use it as the index date for controls (since they by definition don't have an index date).
158158
For example, we might want to see if our matched controls have had a codelist event on or after their case index date.
159159
```python
160160
from ehrql import codelist_from_csv

0 commit comments

Comments
 (0)