Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion R/robincar-tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @param car_scheme Name of the type of covariate-adaptive randomization scheme. One of: "simple", "pocock-simon", "biased-coin", "permuted-block".
#' @param ref_arm Reference arm of the treatment group, defaults to NULL,
#' which results in using the first element of `unique(data[, treat_col])`.
#' @param p_trt Treatment allocation ratio for the reference arm.
#' @param p_trt Treatment allocation ratio for the treatment arm.
#' @param adj_method Adjustment method (one of "CL", "CSL", or "coxscore")
#' @param sparse_remove Remove sparse car_strata from calculation
#'
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ articles:
- articles/Calibration-for-GLM-Models
- articles/Robust-Testing-for-Time-to-Event-Data
- articles/Mantel-Haenszel-Statistic
- articles/Family

template:
params:
Expand Down
327 changes: 327 additions & 0 deletions docs/articles/Family.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/articles/index.html

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

14 changes: 10 additions & 4 deletions docs/index.html

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

3 changes: 2 additions & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ pkgdown_sha: ~
articles:
Calibration-for-GLM-Models: Calibration-for-GLM-Models.html
Continuous-and-GLM-Type-Outcomes: Continuous-and-GLM-Type-Outcomes.html
Family: Family.html
Mantel-Haenszel-Statistic: Mantel-Haenszel-Statistic.html
Robust-Testing-for-Time-to-Event-Data: Robust-Testing-for-Time-to-Event-Data.html
last_built: 2025-05-22T20:54Z
last_built: 2025-12-19T16:56Z

14 changes: 12 additions & 2 deletions docs/reference/robincar_glm.html

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

2 changes: 1 addition & 1 deletion docs/reference/robincar_tte.html

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

2 changes: 1 addition & 1 deletion man/robincar_tte.Rd

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

14 changes: 11 additions & 3 deletions vignettes/articles/Family.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ knitr::opts_chunk$set(echo = TRUE)

```{r}
library(RobinCar)
library(RobinCar2)
library(dplyr)

if (!require("remotes")) {
install.packages("remotes")
}
remotes::install_github(
"openpharma/RobinCar2"
)

library(RobinCar2)
```

This vignette is to accompany the Results section of the RobinCar Family paper.
Expand Down Expand Up @@ -104,8 +112,8 @@ For a survival outcome with right-censoring, we can use the RobinCar2 function `
to do a covariate-adjusted, stratified log-rank test.

```{r}
robin_surv(
Surv(days, cens) ~ wtkg + oprior + hemo,
surv <- robin_surv(
Surv(days, cens) ~ wtkg + oprior + hemo + strata(strat),
treatment = arms ~ pb(strat),
data = data
)
Expand Down