R/data.R

#' Synthetic data representing a simple mediator chain
#'
#' Chain is generated from a simple Bayes network,
#' \deqn{X\rightarrow M_1 \rightarrow M_2  \rightarrow M_3  \rightarrow M_4  \rightarrow Y}
#' where every variable is binary.
#' The set consists of 11 observations, and is tuned to be easily deciphered.
#' @format A data set with six binary factor columns.
#' @usage data(chain)
"chain"

#' Synthetic continuous data representing a simple mediator chain
#'
#' Chain is generated from an uniform variable X by progressively adding gaussian noise, producing a mediator chain identical to this of the \code{\link{chain}} data, i.e.,
#' \deqn{X\rightarrow M_1 \rightarrow M_2  \rightarrow M_3  \rightarrow M_4  \rightarrow Y}
#' The set consists of 20 observations, and is tuned to be easily deciphered.
#' @format A data set with six numerical columns.
#' @usage data(cchain)
"cchain"

#' Synthetic data representing a junction
#'
#' Junction is a model of a multimodal agent, a variable that is an element of multiple separate paths.
#' Here, these paths are \eqn{A_1\rightarrow X \rightarrow A_2} and 
#' \eqn{B_1\rightarrow X \rightarrow B_2,}
#' while \eqn{X} is the junction.
#' The set consists of 12 observations, and is tuned to be easily deciphered.
#' @format A data set with five factor columns.
#' @usage data(junction)
"junction"

Try the vistla package in your browser

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

vistla documentation built on Oct. 5, 2023, 5:08 p.m.