R/impute.R

#' impute data
#'
#' Small artificial data set used to illustrate imputation methods. Missing values
#' are denoted by NA.
#'
#'
#' @format This data frame contains the following columns:
#'\describe{
#'\item{person:}{identification number for person}
#'
#'\item{age:}{age in years}
#'
#'\item{gender:}{
#'M = male
#'
#'  F = female}
#'
#'\item{education:}{number of years of education}
#'
#'\item{crime:}{
#'= 1 if victim of any crime
#'
#'= 0 otherwise}
#'
#'\item{violcrime:}{
#'= 1 if victim of violent crime
#'
#'= 0 otherwise}
#'}
#'
#'
#'
#' @docType data
#'
#' @usage data(impute)
#'
#'
#'
#' @keywords datasets
#'
#' @references Lohr (2021), Sampling: Design and Analysis, 3rd Edition. Boca Raton, FL: CRC Press.
#' 
#'@references Lu and Lohr (2021), R Companion for \emph{Sampling: Design and Analysis, 3rd Edition}, 1st Edition. Boca Raton, FL: CRC Press.
#'  
#'
"impute"

Try the SDAResources package in your browser

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

SDAResources documentation built on Oct. 22, 2021, 5:08 p.m.