Description Usage Format Examples
A data frame with 2,094,140 observations on the following variables:
1 |
A data frame with 2,094,140 observations on the following:
respondent id
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
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.