-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support relative dates and non-numeric pids #16
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16 +/- ##
==========================================
+ Coverage 92.17% 92.58% +0.40%
==========================================
Files 8 8
Lines 409 418 +9
==========================================
+ Hits 377 387 +10
+ Misses 32 31 -1 ☔ View full report in Codecov by Sentry. |
obs_id = seq_len(.N), | ||
t_since_last_exp = as.integer(day - last_exp_day, units = "days"))] | ||
if (!("censored" %in% colnames(private$data))) { | ||
private$data$censored <- 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also make censored
an optional column (default to all uncensored)
Closes #6 |
We should accomodate data sets that have a relative date/day/time column (i.e. natural numbers) rather than absolute dates. Also support non-numeric pids.
Changes:
time_type
argument in the main class initializer. This was used inconsistently, and seems a bit confusingcensored
an optional input column (default to all observations uncensored)