Skip to content
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

36 rpwenroll rpw enroll #66

Merged
merged 5 commits into from
Feb 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rpwenroll to rpw_enroll
lili-ling-msd committed Feb 22, 2023
commit 450edb7c7337db8e80b0df33826a6f622987a63c
4 changes: 2 additions & 2 deletions vignettes/simtrialroutines.Rmd
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ This vignette demonstrates the lower-level routines in the simtrial package spec
The routines are as follows:

* `fixedBlockRand` - fixed block randomization
* `rpwenroll` - random inter-arrival times with piecewise constant enrollment rates
* `rpw_enroll` - random inter-arrival times with piecewise constant enrollment rates
* `rpwexp` - piecewise exponential failure rate generation
* `cutData` - cut data for analysis at a specified calendar time
* `cutDataAtCount` - cut data for analysis at a specified event count, including ties on the cutoff date
@@ -67,7 +67,7 @@ fixedBlockRand(n = 20)
Piecewise constant enrollment can be randomly generated as follows. Note that duration is specifies interval durations for constant rates; the final rate is extended as long as needed to generate the specified number of observations.

```{r}
rpwenroll(n = 20, enrollRates = tibble(
rpw_enroll(n = 20, enrollRates = tibble(
duration = c(1, 2),
rate = c(2, 5)
))