R/data.R

#' Simulated Data for Independent T-test
#'
#' A simulated data set to experiment with nonparboot() with test = "t"
#' @format ## `data_t`
#' A data frame with 10 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{grp}{A factor variable with group labels}
#' }
#' @source Simulated data
"data_t"

#' Simulated Data for Paired T-test
#'
#' A simulated data set to experiment with nonparboot() with test = "pt"
#' @format ## `data_pt`
#' A data frame with 10 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{y}{A numeric variable}
#' }
#' @source Simulated data
"data_pt"

#' Simulated Data for F-test
#'
#' A simulated data set to experiment with nonparboot() with test = "F"
#' @format ## `data_f`
#' A data frame with 15 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{grp}{A factor variable with group labels}
#' }
#' @source Simulated data
"data_f"

#' Simulated Data for Paired T-test Using Identically Distributed Data
#'
#' A simulated data set to experiment with nonparboot() with test = "pt" when
#' both variables are drawn from identical distributions
#' @format ## `data_pt_id`
#' A data frame with 10 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{y}{A numeric variable}
#' }
#' @source Simulated data
"data_pt_id"

#' Simulated Data for F-test Using Identically Distributed Data
#'
#' A simulated data set to experiment with nonparboot() with test = "F" when all
#' groups are drawn from identical distributions
#' @format ## `data_f_id`
#' A data frame with 15 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{grp}{A factor variable with group labels}
#' }
#' @source Simulated data
"data_f_id"

#' Simulated Data for Independent T-test with Missing Outcomes
#'
#' A simulated data set to experiment with nonparboot() with test = "t" and
#' missing outcome values
#' @format ## `data_t_mi`
#' A data frame with 10 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{grp}{A factor variable with group labels}
#' }
#' @source Simulated data
"data_t_mi"

#' Simulated Data for Paired T-test with Missing Data
#'
#' A simulated data set to experiment with nonparboot() with test = "pt" and
#' missing values
#' @format ## `data_pt_mi`
#' A data frame with 10 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{y}{A numeric variable}
#' }
#' @source Simulated data
"data_pt_mi"

#' Simulated Data for F-test with Missing Outcomes
#'
#' A simulated data set to experiment with nonparboot() with test = "F" and
#' missing outcomes
#' @format ## `data_f_mi`
#' A data frame with 15 rows and 2 columns:
#' \describe{
#'   \item{x}{A numeric variable}
#'   \item{grp}{A factor variable with group labels}
#' }
#' @source Simulated data
"data_f_mi"

Try the npboottprm package in your browser

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

npboottprm documentation built on Sept. 13, 2024, 5:06 p.m.