-
Notifications
You must be signed in to change notification settings - Fork 1
/
insurance.R
31 lines (31 loc) · 1.25 KB
/
insurance.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#' @title Medical Expenses
#'
#' @description
#' Predicting medical expenses
#'
#' @source
#' From \href{https://www.packtpub.com/product/machine-learning-with-r/9781782162148}{Machine Learning in R by Brett Lantz}. Data downloaded
#' from \href{https://github.com/stedy/Machine-Learning-with-R-datasets}{GitHub}.
#'
#' @format A data frame with 1338 rows and 7 variables:
#' \describe{
#' \item{\code{age}}{integer. age of primary beneficiary.}
#' \item{\code{sex}}{character. insurance contractor gender, female,
#' male.}
#' \item{\code{bmi}}{double. Body mass index, providing an
#' understanding of body, weights that are relatively high
#' or low relative to height,
#' objective index of body weight (kg / m ^ 2) using the
#' ratio of height to weight, ideally 18.5 to 24.9.}
#' \item{\code{children}}{integer. Number of children
#' covered by health insurance / Number of dependents.}
#' \item{\code{smoker}}{character. Smoking (yes, no)}
#' \item{\code{region}}{character. the beneficiary's
#' residential area in the US, northeast, southeast,
#' southwest, northwest.}
#' \item{\code{charges}}{double. Individual medical
#' costs billed by health insurance (in dollars).}
#' }
#' @examples
#' summary(insurance)
"insurance"