Skip to content

Commit

Permalink
revise math_dropout data
Browse files Browse the repository at this point in the history
  • Loading branch information
mccarthy-m-g committed Jun 17, 2024
1 parent ef952a0 commit a121afc
Show file tree
Hide file tree
Showing 5 changed files with 9,569 additions and 9,570 deletions.
7 changes: 3 additions & 4 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,10 @@ NULL
#'
#' \describe{
#' \item{`id`}{Participant ID.}
#' \item{`last_term`}{The term a student stopped enrolling in mathematics courses.}
#' \item{`woman`}{Binary indicators for whether the student identified as a woman.}
#' \item{`censor`}{Censoring status.}
#' \item{`term`}{Term each record corresponds to.}
#' \item{`term`}{Academic term each record corresponds to.}
#' \item{`event`}{Binary indicator for whether the student stopped enrolling in mathematics courses at a given term.}
#' \item{`censor`}{Censoring status.}
#' \item{`woman`}{Binary indicators for whether the student identified as a woman.}
#' }
#' @source
#' Graham, S. E. (1997). The exodus from mathematics: When and why?
Expand Down
5 changes: 3 additions & 2 deletions data-raw/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,13 @@ math_dropout <- tidy_data$mathdropout_pp |>
last_term = lastpd
) |>
select(
-c(one, ltime, fltime),
-c(last_term, one, ltime, fltime),
-starts_with("hs"),
-starts_with("coll"),
-starts_with("fhs"),
-starts_with("fcoll")
)
) |>
relocate(id, term, event, censor, woman)

# Chapter 13 ------------------------------------------------------------------

Expand Down
Loading

0 comments on commit a121afc

Please sign in to comment.