Skip to contents

Using the table with PDD rates estimates per diagnostic algorithm generated by summarise_rates, this function extracts a list of algorithms using different IADL criteria for PDD. If there was an algorithm that uses both criteria at the same time, the function prints an error.

Usage

list_algorithms(rates)

Arguments

rates

A tibble containing raw summaries of PDD rates as generated by summarise_rates.

Value

A list with two components:

faq_tot

A character vector containing names of algorithms that defined IADL deficit by FAQ total score > 7.

faq_9

A character vector containing names of algorithms that defined IADL deficit by FAQ item 9 > 1.

See also

summarise_rates() which is fed into this function.

Examples

if (FALSE) { # \dontrun{
p <- data_paths("data-raw")
data <- prepare_data(p)
pdd  <- diagnose_pdd_sample(data)
vars <- here::here("data-raw", "VariablesOfInterest.csv")

rates <- summarise_rates(pdd, vars)
algos <- list_algorithms(rates$table)
} # }