Dataset curation for phylogenetically aware regression
Source:R/phyloaware_dataset_curation.R
phyloaware_dataset_curation.Rd
Curate three datasetes for phylogenetically aware regression.
Usage
phyloaware_dataset_curation(
trait,
df,
first_present = FALSE,
patient_id = NULL,
culture_date = NULL
)
Arguments
- trait
Outcome of interest. Character string.
- df
Dataset with trait variable and asr_cluster. Must contain patient_id and culture_date variables if first_present == TRUE.
- first_present
Boolean (i.e., TRUE/FALSE) indicating whether to take the first present isolate
- patient_id
Variable that contains IDs that group tips (i.e., Patient ID). Character string.
- culture_date
Variable that contains collection/culture date. Character string. Variable must be formatted as a date.