petsdata {SBdecomp} | R Documentation |
Dog ownership dataset
Description
This dataset is a random subset of the publicly available 2003 California Health Interview Survey data; the data consists responses from 2,102 adults. For the purpose of illustrating the functions in this package, the goal is to investigate the effect of dog ownership on general health. Dog ownership was assessed with the question “Do you have any dogs that you allow inside your home?"; 29.0% of respondents owned a dog. General health status of the individual was measured as the self-reported response to the question “Would you say that in general your health is excellent, very good, good, fair or poor?" Responses were coded from 1 through 5 with 5 indicating “Excellent." Available individual characteristics i.e., confounders, in this dataset include age, gender, race/ethnicity, household size, marriage status, whether the individual received TANF (Temporary Assistance for Needy Families), household annual income, whether the individual worked full time, whether the individual had a spouse that worked full time, whether the individual lived in a house, and a rural/urban measure (1= urban; 2= 2nd city; 3 = suburban; 4 = town and rural) for the individual's address.
Usage
data("petsdata")
Format
A data frame with 2102 observations on the following 14 variables.
gotdog
indicates whether individual reported owning a dog where 1 is yes and 0 is no (binary)
age
age of the individual (numeric)
ismale
indicates the sex of the individual where 1 is yes and 0 is no (binary)
race_coll
ace/ethnicity of the individual, collapsed into categories where 1 is Latino, 4 is Asian, 6 is White, and 7 is a combined category of Pacific Islander/Native American/African American/other race/multiple race (factor/categorical)
hhsize
household size (numeric count)
ownhome
indicates whether the individual owns the home they live in where 1 is yes and 0 is no (binary)
married
indicates whether the individual is married where 1 is yes and 0 is no (binary)
ontanf
indicates whether the individual received TANF where 1 is yes and 0 is no (binary)
hhincome
household income, log-transformed (numeric)
fulltime
indicates whether the individual works full time where 1 is yes and 0 is no (binary)
spouse_fulltime
indicates whether the individual has a spouse that works full time where 1 is yes and 0 is no (binary)
liveinhouse
indicates whether the individual lives in a house (as opposed to an apartment, duplex, or mobile home) where 1 is yes and 0 is no (binary)
ruralurban
the rural/urban measure of the home address of the individual where 1= urban, 2= 2nd city, 3 = suburban, 4 = town and rural (numeric)
genhealth
self-reported general health of the individual, numeric 1-5 scale where 5 is excellent (numeric)
References
California Health Interview Survey (2005). CHIS 2003 Methodology Series. Los Angeles: UCLA Center for Health Policy Research.
Examples
data(petsdata)
dim(petsdata)
names(petsdata)