Skip to content

Commit fd87c92

Browse files
edelaruashajoezhu
andauthoredJan 27, 2024
Revert RATET01 updates (temporarily) (#197)
Closes #196 --------- Co-authored-by: shajoezhu <sha.joe.zhu@gmail.com>
1 parent 7a1d706 commit fd87c92

File tree

2 files changed

+1
-87
lines changed

2 files changed

+1
-87
lines changed
 

Diff for: ‎book/tables/efficacy/ratet01.qmd

+1-59
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ subtitle: Event Rate Summary for Recurrent Events
55

66
------------------------------------------------------------------------
77

8-
{{< include ../../test-utils/envir_hook.qmd >}}
9-
108
This example will focus on data from a single visit "WEEK 1 DAY 8" and a single endpoint "FKSI-FWB".
119
Only evaluable populations will be analyzed.
1210

@@ -31,65 +29,9 @@ anl <- df_explicit_na(anl)
3129
## Customized Table
3230

3331
```{r variant1, test = list(result_v1 = "result")}
34-
lyt <- basic_table(show_colcounts = TRUE) %>%
35-
split_cols_by("ARM", ref_group = "B: Placebo", split_fun = ref_group_position("first")) %>%
36-
analyze_vars(
37-
"AVAL_f",
38-
var_labels = "Number of exacerbations per patient",
39-
.stats = c("count_fraction"),
40-
.formats = c("count_fraction" = "xx (xx.xx%)"),
41-
.label = c("Number of exacerbations per patient")
42-
) %>%
43-
summarize_glm_count(
44-
vars = "AVAL",
45-
variables = list(arm = "ARM", offset = "lgTMATRSK", covariates = NULL),
46-
conf_level = 0.95,
47-
distribution = "poisson",
48-
rate_mean_method = "emmeans",
49-
var_labels = "Unadjusted exacerbation rate (per year)",
50-
table_names = "unadj",
51-
.stats = c("rate"),
52-
.labels = c(rate = "Rate")
53-
) %>%
54-
summarize_glm_count(
55-
vars = "AVAL",
56-
variables = list(arm = "ARM", offset = "lgTMATRSK", covariates = c("REGION1")),
57-
conf_level = 0.95,
58-
distribution = "quasipoisson",
59-
rate_mean_method = "ppmeans",
60-
var_labels = "Adjusted (QP) exacerbation rate (per year)",
61-
table_names = "adj-qp",
62-
.stats = c("rate", "rate_ci", "rate_ratio", "rate_ratio_ci", "pval"),
63-
.labels = c(
64-
rate = "Rate", rate_ci = "Rate CI", rate_ratio = "Rate Ratio",
65-
rate_ratio_ci = "Rate Ratio CI", pval = "p value"
66-
)
67-
) %>%
68-
summarize_glm_count(
69-
vars = "AVAL",
70-
variables = list(arm = "ARM", offset = "lgTMATRSK", covariates = c("REGION1")),
71-
conf_level = 0.95,
72-
distribution = "negbin",
73-
rate_mean_method = "emmeans",
74-
var_labels = "Adjusted (NB) exacerbation rate (per year)",
75-
table_names = "adj-nb",
76-
.stats = c("rate", "rate_ci", "rate_ratio", "rate_ratio_ci", "pval"),
77-
.labels = c(
78-
rate = "Rate", rate_ci = "Rate CI", rate_ratio = "Rate Ratio",
79-
rate_ratio_ci = "Rate Ratio CI", pval = "p value"
80-
)
81-
)
82-
83-
result <- build_table(
84-
lyt = lyt,
85-
df = anl
86-
)
87-
88-
result
32+
# Under development
8933
```
9034

91-
{{< include ../../test-utils/save_results.qmd >}}
92-
9335
## `teal` App
9436

9537
```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}

Diff for: ‎package/tests/testthat/_snaps/ratet01/markdown-snaps.md

-28
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.