R/data-yawn.R

#' Contagiousness of yawning
#'
#' An experiment conducted by the MythBusters, a science entertainment TV
#' program on the Discovery Channel, tested if a person can be subconsciously
#' influenced into yawning if another person near them yawns. 50 people were
#' randomly assigned to two groups: 34 to a group where a person near them
#' yawned (treatment) and 16 to a group where there wasn't a person yawning
#' near them (control).
#'
#'
#' @name yawn
#' @docType data
#' @format A tibble with 50 observations on the following 2 variables.
#' \describe{
#'   \item{result}{a factor with levels \code{not yawn} \code{yawn}}
#'   \item{group}{a factor with levels \code{ctrl} \code{trmt}}
#'   }
#' @source MythBusters, Season 3, Episode 28.
#' @keywords datasets
#' @examples
#'
#' yawn
#'
"yawn"
OpenIntroStat/openintro-r-package documentation built on Aug. 12, 2019, 5:19 a.m.