Learn R Programming

hot.deck (version 1.2)

ampData: Example data for multiple hot deck imputation with ordinal variables.

Description

Simulated example data for multiple hot deck imputation with ordinal variables.

Usage

data(ampData)

Arguments

Format

A data frame with 1000 observations on the following 20 variables.

Ind

a numeric binary vector indicating Independent party ID

Black

a numeric binary vector indicating African-American ethnicity

Hisp

a numeric binary vector indicating Hispanic ethnicity

Asian

a numeric binary vector indicating Asian ethnicity

Empl

a numeric binary vector indicating employment

Stud

a numeric binary vector indicating students

Interest

a numeric vector indicating political interest

Educ

a numeric vector indicating education level

Religious

a numeric binary vector indicating religious affiliation

InternetHome

a numeric binary vector indicating the presence of internet at home

OwnHome

a numeric binary vector indicating home ownership

Rally

a numeric binary vector indicating attendance at political rallies

Donate

a numeric binary vector indicating donations

Moderate

a numeric binary vector indicating moderate political ideology

Married

a numeric binary vector indicating marriage

Separated

a numeric binary vector indicating separation

Dem

a numeric binary vector indicating Democratic party ID, contains missing values

Male

a numeric binary vector indicating men, contains missing values

Inc

a numeric vector indicating income, contains missing values

Age

a numeric vector indicating age, contains missing values

Examples

Run this code
# NOT RUN {
data(ampData)
hd.ord(data = ampData,
      ord = c("Educ", "Interest"),
      evs = c("Dem", "Black", "Empl", "Male", "Inc", "Age"))
# }

Run the code above in your browser using DataLab