Skip to content

Commit

Permalink
Update Recurring_Events.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromafonso committed Dec 25, 2023
1 parent fb54977 commit 4e0c2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/Recurring_Events.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ where $i = 1, \ldots, n$. For the longitudinal outcomes we specify linear mixed-
## Example

### Data
We simulate data from a joint model with three outcomes: one longitudinal outcome, one terminal failure-time, and one recurrent failure-time. We assume that the underlying value of the longitudinal outcome is associated with both risk models and use the *gap* timescale. The reader can easily extend this example to accommodate multiple longitudinal markers with other forms of association, exclude the terminal event, or use a different timescale.
We simulate data from a joint model with three outcomes: one longitudinal outcome, one terminal failure-time, and one recurrent failure-time. We assume that the underlying value of the longitudinal outcome is associated with both risk models and use the *gap* timescale. The reader can easily extend this example to accommodate multiple longitudinal markers with other forms of association, include competing risks, consider only the recurrent events process, or use a different timescale.
```{r gen_data}
gen_data <- function(){
n <- 500 # desired number of subjects
Expand Down

0 comments on commit 4e0c2b3

Please sign in to comment.