R/small.R

#' small data
#'
#' A very small data set used to illustrate logistic regression.
#'
#' @format A data frame with 10 observations (rows) and 2 variables (columns).
#' \tabular{llllr}{
#'   \tab \bold{Column name} \tab \bold{Data type} \tab \bold{Values}\cr
#'   \code{[,1]} \tab \code{y} \tab binary \tab (0, 1)\cr
#'   \code{[,2]} \tab \code{x} \tab binary \tab (0, 1)\cr
#' }
#'
#' @examples
#' 
#' # Logistic regression model
#' res1 <- glm(y ~ x, data = small, family = binomial)
#' 
#' # extracts model coefficients from regression model
#' coef(res1)
#'
#' @docType data
#' @keywords datasets
#' @name small
#' @usage small
#'
"small"
thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.