Skip to content

Conversation

Lpierott
Copy link
Contributor

No description provided.

@Lpierott Lpierott linked an issue Feb 19, 2025 that may be closed by this pull request
Copy link
Member

@DanChaltiel DanChaltiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up 😃


Maximum AE grade per patient (for both single-arm and two-arm trials)

All AE grades per patient (for both single-arm and two-arm trials)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"All AE grades" is not 100% accurate. See the documentation.
Also, I'm not sure how you should describe the tables, as there are so many, but 3 categories is not what I would have said, as there are still only 2 functions. Maybe you should focus on that first? E.g. "this vignette demonstrate how to use the 2 functions of grstat, xxx() and xxx()".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adverse Events by Maximum Grade per Patient (Grades 1–5, for both single-arm and two-arm trials)?

I am not quite sure what are you referring to after that?


This vignette covers the following steps:

Overview of the dataset, using the simulated dataset grstat_example
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use markdown throughout your vignette, otherwise it is not very comfortable to read.

It is fairly easy to learn and very useful in many cases. (remember, for the backtick ` on overcomplicated French keyboards, it is Alt Gr + 7, then space)
You can also use the "Visual" mode in RStudio if you don't want to learn.


Overview of the dataset, using the simulated dataset grstat_example

Creation of various AE tables for single-arm and two-arm trials, including subgroup analysis based on whether the AE is:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I'm following, is this a level-2 list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just changed the format also there might be too many things and I might eventually remove some.

add_footer_lines("Percentages reflect the proportion of patients presenting at most one AE of given grade")
```

## Table of all grades per patient
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"All grades" is not really true.
You have to summarise the information at some point, otherwise, you need one row per patient.
I implemented 3 "variants" of summarisation.
If the documentation is unclear, we should improve it! (I struggled a lot to write it, I'm sure there is a lot of room for improvement.)

Copy link
Contributor Author

@Lpierott Lpierott Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made changes, please have a look. par contre question, pour la troisieme table, est ce que tu compte le patients 1 fois par grade ou plusieur fois pour le meme grade?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t as pu regarder ce que j ai fait avant que je continue?

Copy link
Member

@DanChaltiel DanChaltiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go Livia go !

## Table of maximum grades per patient

```{r}
ae_table_grade(df_ae=ae, df_enrol=enrolres, arm=NULL, variant="max") %>%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem mais avec le défaut de variant : variant=c("max", "sup", "eq")
Ensuite bien expliquer la différence.


## Table of all grades per patient by arms

```{r}
Copy link
Member

@DanChaltiel DanChaltiel Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu peux n'afficher que les n premières lignes pour raccourcir les tables si besoin

ae_table_soc(df_ae=ae, df_enrol=enrolres) %>% head(2) %>% 
    as_flextable()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vignette : description des AE
2 participants