R/exampleData.R

#' Simulated Target Data for cPCA and scPCA
#'
#' The toy data consisting of 400 observations and 31 variables was simulated
#' as follows:
#' \itemize{
#'   \item Each of the first 10 variables was drawn from $N(0, 10)$
#'   \item For group 1 and 2, variables 11 through 20 were drawn from $N(0, 1)$
#'   \item For group 3 and 4, variables 11 through 20 were drawn from $N(3, 1)$
#'   \item For group 1 and 3, variables 21 though 30 were drawn from $N(-3, 1)$
#'   \item For group 2 and 4, variables 21 though 30 were drawn from $N(0, 1)$
#'   \item The last column provides each observations group number
#' }
#'
#' @docType data
#'
#' @usage data(toy_df)
#'
#' @format A simple \code{data.frame}.
#'
#' @keywords datasets
#'
#' @examples
#' data(toy_df)
"toy_df"

################################################################################

#' Simulated Background Data for cPCA and scPCA
#'
#' The background data consisting of 400 observations and 30 variables was
#' simulated as follows:
#' \itemize{
#'   \item Each of the first 10 variables was drawn from $N(0, 10)$
#'   \item Variables 11 through 20 were drawn from $N(0, 3)$
#'   \item Variables 21 through 30 were drawn from $N(0, 1)$
#' }
#'
#' @docType data
#'
#' @usage data(background_df)
#'
#' @format A simple \code{data.frame}.
#'
#' @keywords datasets
#'
#' @examples
#' data(background_df)
"background_df"

Try the scPCA package in your browser

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

scPCA documentation built on Nov. 8, 2020, 6 p.m.