R/data.R

#' This generated data set simulates some student-level data for
#' demonstrating the use of `pbph`.
#'
#'
#' @title Student level demographic, performance and end-of-term test scores.
#' @format A data.frame with 80 rows and 5 columns.
#' \itemize{
#'   \item afterschool Indicator in membership in an afterschool intervention (the treatment variable).
#'   \item male Indicator for gender (1 = male, 0 = female).
#'   \item gpa GPA on a 4.0 scale.
#'   \item class Students class (data can be considered as a clustered random trial).
#'   \item test Score (out of 100) on an end-of-term standardized test.
#' }
#' @keywords dataset
"eottest"

#' This generated data set simulates some data about sales, testing whether a new technique increased sales (a binary response).
#'
#'
#' @title Sales data with old and new technique
#' @format A data.frame with 238 rows and 4 columns.
#' \itemize{
#'   \item newtechnique Indicator of whether the new technique is used (the treatment variable).
#'   \item experience Years of experience of salesperson.
#'   \item previoussales The number of previous sales made in the calendar year.
#'   \item sale Indicator of whether the sale was successful.
#' }
#' @keywords dataset
"salesdata"
josherrickson/epb documentation built on July 6, 2023, 9:12 p.m.