atusact: ATUS Respondent Daily Activity Summary (2003-2016)

Description Usage Format Examples

Description

A data frame with 2,094,140 observations on the following variables:

Usage

1

Format

A data frame with 2,094,140 observations on the following:

tucaseid

respondent id

tiercode

activity tier code, in the format 'AABBCC', where 'AA' is the tier 1 activity code (1-18), 'BB' is the tier 2 activity code (0-99), and 'CC' is the numeric tier 3 activity code (0-99); see tier codebook

dur

total duration (in minutes) spent over the course of the day by the respondent in the given tier code

#' @source Aggregated from ATUS Activity data file from https://www.bls.gov/tus/datafiles_0316.htm with tier codebook at https://www.bls.gov/tus/lexiconnoex0316.pdf.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data(atusact)
# example activity: sleeping
#          tier 1 code = 01 (personal care)
#          tier 2 code = 01 (sleeping)
#          tier 3 code = all

# this is a data frame with all individuals that did some amount of sleeping
# on their diary day
sleeping <- atusact[atusact$tiercode >= 10100 & atusact$tiercode < 10200,]

# how many did not sleep?
length(unique(atusact$tucaseid)) - length(unique(sleeping$tucaseid))

# example activity: doing homework (for a class towards a degree)
#          tier 1 code = 06
#          tier 2 code = 03
#          tier 3 code = 01

hw <- atusact[atusact$tiercode == 60301,]
hist(hw$dur)
summary(hw$dur)

atus documentation built on May 1, 2019, 9:21 p.m.

Related to atusact in atus...