Description Usage Arguments Value

View source: R/makeWideDataList.R

The function takes a `data.frame`

and `list`

consisting of short
and long format right-censored failure times. The function reshapes the long
format into the wide format needed for calls to `mean_tmle`

. The list
returned by the function will have number of entries equal to
`length(trtOfInterest) + 1`

. The first will contain the observed
`trt`

columns and will set `C.t`

(the censoring counting process)
equal to the observed value of censoring. The subsequent entries will set
`trt`

equal to each level of `trtOfInterest`

and set `C.t`

to
zero for everyone.

1 | ```
makeWideDataList(dat, allJ, uniqtrt, adjustVars, dataList, t0, ...)
``` |

`dat` |
The short form |

`allJ` |
Numeric vector indicating the labels of all causes of failure. |

`uniqtrt` |
The values of |

`adjustVars` |
A data.frame of adjustment variables that will be used in estimating the conditional treatment, censoring, and failure (hazard or conditional mean) probabilities. |

`dataList` |
A list of long format |

`t0` |
The timepoint at which |

`...` |
Other arguments. Not currently used. |

A list of `data.frame`

objects as described above.

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.