opensafely-core / matching

Matches cases to controls for studies
GNU General Public License v3.0
9 stars 0 forks source link

Feature Proposals #75

Open annaschultze opened 2 years ago

annaschultze commented 2 years ago

Two things that might eventually be nice to include (but are currently not hindering any projects, so are really not urgent):

match(
    case_csv="input_covid",
    match_csv="input_pneumonia",
    matches_per_case=1,
    match_variables={
        "sex": "category",
        "age": 1,
    },
    index_date_variable="indexdate",
    date_exclusion_variables={
        "pregnancy": "between["indexdate - 274 days", indexdate"]" 
    },
    output_suffix="_pneumonia",
    output_path="test_data",
)