File: datasets.R

package info (click to toggle)
r-cran-parameters 0.24.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,852 kB
  • sloc: sh: 16; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 921 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#' @docType data
#' @title Sample data set
#' @name fish
#' @keywords data
#'
#' @description A sample data set, used in tests and some examples.
NULL


#' @docType data
#' @title Sample data set
#' @name qol_cancer
#' @keywords data
#'
#' @description A sample data set with longitudinal data, used in the vignette describing the `datawizard::demean()` function. Health-related quality of life from cancer-patients was measured at three time points (pre-surgery, 6 and 12 months after surgery).
#'
#' @format A data frame with 564 rows and 7 variables:
#' \describe{
#'   \item{ID}{Patient ID}
#'   \item{QoL}{Quality of Life Score}
#'   \item{time}{Timepoint of measurement}
#'   \item{age}{Age in years}
#'   \item{phq4}{Patients' Health Questionnaire, 4-item version}
#'   \item{hospital}{Hospital ID, where patient was treated}
#'   \item{education}{Patients' educational level}
#' }
NULL