Create NACC T-Cog Neuropsychological Assessment Summary Table
Source:R/assessment_summary_table.R
assessment_summary_table.Rd
This function create a summary table of measures from the NACC T-Cog Neuropsychological Assessment.
Usage
assessment_summary_table(summary_dat, bar_height = 16)
assessment_summary_data(
dat,
id = "NACCID",
descriptions = c(Impaired = 0.03, Borderline = 0.1, `Low Average` = 0.26, Average =
0.76, `High Average` = 0.92, Superior = 0.97, `Very Superior` = 1),
fill_values = NULL,
methods = "infer",
include_caption = TRUE
)
Arguments
- bar_height
In pixels. Height of the percentile bars. Default: 16
- dat
Data to use. Must have exactly one row (data from one participant and one visit).
- id
Column containing ID.
- descriptions
A named vector giving cutoffs to use for creating descriptions.
- fill_values
(optional) A named vector of same length (with same names) as
descriptions
with hex color values to use. IfNULL
, no colorcoding used. By default, evenly spread out colors from red through yellow to green are used.- methods
(optional) either list of named entries specifying which model was used for standardizing cognitive scores, or the character string "infer". For the latter, methods are infered from the
dat
object usingNpsychBatteryNorms::methods_from_std_data
. If specified, footnotes are added to indicate the methods used.- include_caption
Logical; should a caption be included above the table with age and IQCODEs at current visit?