R/dataCog.R

#' Made-up longitudinal data on global cognition before death
#'
#' The dataCog contains 1200 individuals with one line per visit. Repeated measures of global cognition (cognition) were collected over a maximum period of 30 years. Information on the age at death is also provided (ageDeath, ageDeath90).
#'
#' @name dataCog
#' @docType data
#' @format A data frame with 11867 observations over 1200 subjects and 5 variables: \describe{
#' \item{ID}{subject identification number}
#' \item{time}{the retrospective (negative) time before death (in years)}
#' \item{cognition}{composite score of global cognition}
#' \item{ageDeath}{age at death (in years)}
#' \item{ageDeath90}{age at death centered by the mean}
#' }
#' @keywords dataCog
#' @examples
#'
#' summary(dataCog)
#'
NULL

Try the nlive package in your browser

Any scripts or data that you put into this service are public.

nlive documentation built on April 12, 2025, 1:33 a.m.