Description Usage Arguments Value

This internal function calculates the mean observed values of covariates at each time point, as well as mean observed risk.

1 2 3 4 5 6 7 8 9 | ```
obs_calculate(
outcome_name,
compevent_name,
time_name,
covnames,
comprisk,
outcome_type,
obs_data
)
``` |

`outcome_name` |
Character string specifying the name of the outcome variable in |

`compevent_name` |
Character string specifying the name of the competing event variable in |

`time_name` |
Character string specifying the name of the time variable in |

`covnames` |
Vector of character strings specifying the names of the time-varying covariates in |

`comprisk` |
Logical scalar indicating the presence of a competing event. |

`outcome_type` |
Character string specifying the "type" of the outcome. The possible "types" are: |

`obs_data` |
Data table containing the observed data. |

A list. Its first entry is a list of mean covariate values at each time point;
its second entry is a vector of the mean observed risk (for `"survival"`

outcome types) or the mean observed outcome (for `"continuous_eof"`

and
`"binary_eof"`

outcome types); for `"survival"`

outcome types, its
third entry is a vector of mean observed survival.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.