Skip to content

Commit 6efdfa0

Browse files
committed
Add datasets
1 parent da59777 commit 6efdfa0

File tree

6 files changed

+176
-0
lines changed

6 files changed

+176
-0
lines changed

R/nlsy.R

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#' National Longitudinal Survey of Youth data
2+
#'
3+
#' These data come from the years 1990-1994 in the National Longitudinal
4+
#' Survey of Youth, with information about 581 individuals. These data are in
5+
#' the "wide" format for demonstration purposes.
6+
#'
7+
#' @format A data frame with 581 rows and 16 variables:
8+
#' \describe{
9+
#' \item{momage}{Mother's age at birth}
10+
#' \item{gender}{0 if boy, 1 if girl}
11+
#' \item{momwork}{1 if mother works, 0 if not)}
12+
#' \item{married}{1 if parents are married, 0 if not}
13+
#' \item{hispanic}{1 if child is Hispanic, 0 if not}
14+
#' \item{black}{1 if child is black, 0 if not}
15+
#' \item{childage}{Child's age at first interview}
16+
#' \item{anti90}{A measure of anti-social behavior antisocial behavior
17+
#' measured on a scale from 0 to 6, taken in 1990}
18+
#' \item{anti92}{A measure of anti-social behavior antisocial behavior
19+
#' measured on a scale from 0 to 6, taken in 1992}
20+
#' \item{anti94}{A measure of anti-social behavior antisocial behavior
21+
#' measured on a scale from 0 to 6, taken in 1994}
22+
#' \item{self90}{A measure of self-esteem measured on a scale from 6 to 24,
23+
#' taken in 1990}
24+
#' \item{self92}{A measure of self-esteem measured on a scale from 6 to 24,
25+
#' taken in 1992}
26+
#' \item{self94}{A measure of self-esteem measured on a scale from 6 to 24,
27+
#' taken in 1994}
28+
#' \item{pov90}{1 if family is in poverty, 0 if not, in 1990}
29+
#' \item{pov92}{1 if family is in poverty, 0 if not, in 1992}
30+
#' \item{pov94}{1 if family is in poverty, 0 if not, in 1994}
31+
#' }
32+
#' @source
33+
#' These data originate with the U.S. Department of Labor. The particular
34+
#' subset used here come from Paul Allison via Statistical Horizons:
35+
#' \url{https://statisticalhorizons.com/wp-content/uploads/nlsy.dta}
36+
#'
37+
"nlsy"

R/teen_poverty.R

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#' National Longitudinal Survey of Youth teenage women poverty data
2+
#'
3+
#' These data come from the years 1979-1983 in the National Longitudinal
4+
#' Survey of Youth, with information about 1141 teenage women. These data are in
5+
#' the "wide" format for demonstration purposes.
6+
#'
7+
#' @format A data frame with 1141 rows and 28 variables:
8+
#' \describe{
9+
#' \item{id}{Unique identifier for the respondent}
10+
#' \item{age}{Age at first interview}
11+
#' \item{black}{1 if subject is black, 0 if not}
12+
#' \item{pov1}{1 if subject is in poverty, 0 if not, at time 1}
13+
#' \item{pov2}{1 if subject is in poverty, 0 if not, at time 2}
14+
#' \item{pov3}{1 if subject is in poverty, 0 if not, at time 3}
15+
#' \item{pov4}{1 if subject is in poverty, 0 if not, at time 4}
16+
#' \item{pov5}{1 if subject is in poverty, 0 if not, at time 5}
17+
#' \item{mother1}{1 if subject has had a child, 0 if not, at time 1}
18+
#' \item{mother2}{1 if subject has had a child, 0 if not, at time 2}
19+
#' \item{mother3}{1 if subject has had a child, 0 if not, at time 3}
20+
#' \item{mother4}{1 if subject has had a child, 0 if not, at time 4}
21+
#' \item{mother5}{1 if subject has had a child, 0 if not, at time 5}
22+
#' \item{spouse1}{1 if subject lives with a spouse, 0 if not, at time 1}
23+
#' \item{spouse2}{1 if subject lives with a spouse, 0 if not, at time 2}
24+
#' \item{spouse3}{1 if subject lives with a spouse, 0 if not, at time 3}
25+
#' \item{spouse4}{1 if subject lives with a spouse, 0 if not, at time 4}
26+
#' \item{spouse5}{1 if subject lives with a spouse, 0 if not, at time 5}
27+
#' \item{inschool1}{1 if subject is in school, 0 if not, at time 1}
28+
#' \item{inschool2}{1 if subject is in school, 0 if not, at time 2}
29+
#' \item{inschool3}{1 if subject is in school, 0 if not, at time 3}
30+
#' \item{inschool4}{1 if subject is in school, 0 if not, at time 4}
31+
#' \item{inschool5}{1 if subject is in school, 0 if not, at time 5}
32+
#' \item{hours1}{Hours worked during the week of the survey, at time 1}
33+
#' \item{hours2}{Hours worked during the week of the survey, at time 2}
34+
#' \item{hours3}{Hours worked during the week of the survey, at time 3}
35+
#' \item{hours4}{Hours worked during the week of the survey, at time 4}
36+
#' \item{hours5}{Hours worked during the week of the survey, at time 5}
37+
#' }
38+
#' @source
39+
#' These data originate with the U.S. Department of Labor. The particular
40+
#' subset used here come from Paul Allison via Statistical Horizons:
41+
#' \url{https://statisticalhorizons.com/wp-content/uploads/teenpov.dta}
42+
#'
43+
"teen_poverty"

data/nlsy.rda

3.81 KB
Binary file not shown.

data/teen_poverty.rda

9.32 KB
Binary file not shown.

man/nlsy.Rd

+45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/teen_poverty.Rd

+51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)