This function merges, cleans, and enriches clinical and demographic data from a neurological study. It checks for required columns, replaces placeholder values, merges datasets, and computes new variables.

merge_ppmi_imaging_clinical_demographic_data(
  demog,
  ppmidemog0,
  pymf,
  pymversion,
  saa,
  verbose = TRUE
)

Arguments

demog

DataFrame containing PPMI demographic information with columns like PATNO, BIRTHDT. An example filename from LONI would be Demographics_06Feb2024.csv

ppmidemog0

DataFrame containing curated PPMI clinical data including PATNO, EVENT_ID, age_at_visit, age. An example filename from LONI would be PPMI_Curated_Data_Cut_Public_20230612_rev.csv.

pymf

DataFrame containing imaging and additional clinical data keyed by subjectID, date and filename

pymversion

A character string identifying the ANTsPyMM pipeline variant.

saa

DataFrame (optional) containing supplemental clinical measurements with PATNO, EVENT_ID and CSFSAA.

verbose

boolean

Value

A processed DataFrame with merged and enriched clinical and demographic information.

Examples

if (FALSE) { # \dontrun{
  processed_data <- process_clinical_demographic_data(demog, ppmidemog0, saa, pymf)
} # }