Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
guangguangzai committed Jul 30, 2024
1 parent 2f10d16 commit a24a96c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vignettes/wpgsd_corr_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ event %>%
gt() %>%
tab_header(title = "Number of events at each population & analyses")
```
"H1" means the experimental treatment is superior to the control in the population 1/experimental arm 1; "H2" means the experimental treatment is superior to the control in the population 2/experimental arm 2; "Analysis" means different analysis stages, for example, 1 means the interim analysis, and 2 means the final analysis; and the "Event" means the number of events in this condition.
"H1" indicates that the experimental treatment is superior to the control in population 1/experimental arm 1. "H2" indicates that the experimental treatment is superior to the control in population 2/experimental arm 2. "Analysis" refers to different stages of analysis, such as 1 for interim analysis and 2 for final analysis. "Event" represents the number of events in this condition.

For example: H1=1, H2=1, Analysis=1, Event=100 means in the first population, there are 100 cases of experimental treatment is superior to the control in the interim analysis.
For example: H1=1, H2=1, Analysis=1, Event=100 indicates that in the first population, there are 100 cases where the experimental treatment is superior to the control in the interim analysis.

Another example: H1=1, H2=2, Analysis=2, Event=160 means the overlap number of experimental treatment superior to the control in population 1 and 2 in the final analysis is 160.
Another example: H1=1, H2=2, Analysis=2, Event=160 indicates that the number of overlapping cases where the experimental treatment is superior to the control in population 1 and 2 in the final analysis is 160.

*To be noticed, the column names in this function are fixed to be 'H1, H2, Analysis, Event'.
*To be noticed, the column names in this function are fixed to be 'H1, H2, Analysis, Event'.
After we have the event table, we can use generate_corr function to calculate correlation.

```{r}
Expand Down

0 comments on commit a24a96c

Please sign in to comment.