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

change fixedBlockRand to randomize_by_fixed_block #62

Merged
merged 11 commits into from
Feb 23, 2023
Prev Previous commit
Next Next commit
run devtools::document()
  • Loading branch information
lili-ling-msd committed Feb 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 7d6b2f8b22e79f66209ea20fba45b01091850cbb
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ Suggests:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
VignetteBuilder: knitr
Remotes:
dominicmagirr/modestWLRT
68 changes: 0 additions & 68 deletions man/pwexpfit.Rd

This file was deleted.

3 changes: 1 addition & 2 deletions man/tenFH.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/tenFHcorr.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vignettes/simtrialroutines.Rmd
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ This vignette demonstrates the lower-level routines in the simtrial package spec

The routines are as follows:

* `fixedBlockRand` - fixed block randomization
* `rand_by_fixed_block` - fixed block randomization
* `rpwenroll` - 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
@@ -54,12 +54,12 @@ library(dplyr)
Fixed block randomization with an arbitrary block contents is performed as demonstrated below. In this case we have a block size of 5 with one string repeated twice in each block and three other strings appearing once each.

```{r}
fixedBlockRand(n = 10, block = c("A", "Dog", "Cat", "Cat"))
rand_by_fixed_block(n = 10, block = c("A", "Dog", "Cat", "Cat"))
```
More normally, with a default of blocks of size four:

```{r}
fixedBlockRand(n = 20)
rand_by_fixed_block(n = 20)
```

## Enrollment