selectValid.Rd 838 B

12345678910111213141516171819202122232425262728293031
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/modifyData.R
  3. \name{selectValid}
  4. \alias{selectValid}
  5. \title{Map variable time OS status to status at cutoff}
  6. \usage{
  7. selectValid(
  8. df,
  9. cutoff = 2,
  10. timeVar = "years_to_event",
  11. osVar = "st_osMAP",
  12. targetVar = "osAtCutoff"
  13. )
  14. }
  15. \arguments{
  16. \item{df}{data frame}
  17. \item{cutoff}{time instance where OS is evaluated, same units as timeVar}
  18. \item{timeVar}{name of column where times of status evaluation are recorded (from treatment start)}
  19. \item{osVar}{name of column with status at evaluation (1-alive/progress free, 2-censored, 3-dead/w/disease)}
  20. \item{targetVar}{name of target variable holding status at cutoff (0-dead, 1-alive, 2-censored)}
  21. }
  22. \value{
  23. updated data frame with targetVar
  24. }
  25. \description{
  26. Map variable time OS status to status at cutoff
  27. }