R/data.R

#' Sample Titanic Survival Dataset
#'
#' Subset of the Titanic passenger dataset used in Vats and Knudson (2021) 
#' for demonstrating multivariate Gelman-Rubin convergence diagnostics in 
#' Bayesian logistic regression.
#'
#' @name titanic_sub
#' @docType data
#' @format A data frame with 100 rows and 6 variables:
#' \describe{
#'   \item{Survived}{Binary indicator of survival (1 = survived, 0 = died)}
#'   \item{Pclass}{Passenger class (1 = 1st, 2 = 2nd, 3 = 3rd)}
#'   \item{Sex}{Sex of passenger (1 = female, 0 = male)}
#'   \item{Age}{Age in years}
#'   \item{SibSp}{Number of siblings/spouses aboard}
#'   \item{Fare}{Passenger fare}
#' }
#' @source Vats, D. and Knudson, C. (2021). Revisiting the Gelman–Rubin Diagnostic. 
#' \emph{Statistical Science}, 36(4), 518–529. \doi{10.1214/20-STS812}.
#' @keywords datasets
"titanic_sub"

Try the LugsailGR package in your browser

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

LugsailGR documentation built on Aug. 5, 2026, 9:08 a.m.