Description Usage Arguments Details Value References

Fits a semi-parametric joint model as described by Liang et al. (2009).

1 |

`data` |
data frame containing the variables in the model |

`Yname` |
character string indicating the column containing the outcome variable |

`Xnames` |
vector of character strings indicating the names of the columns of the fixed effects in the outcome regression model |

`Wnames` |
vector of character strings indicating the names of the columns of the random effects in the outcome regression model |

`id` |
character string indicating which column of the data identifies subjects |

`time` |
character string indicating which column of the data contains the time at which the visit occurred |

`maxfu` |
The maximum follow-up time per subject. If all subjects have the same follow-up time, this can be supplied as a single number. Otherwise, maxfu should be a dataframe with the first column specifying subject identifiers and the second giving the follow-up time for each subject. |

`baseline` |
An indicator for whether baseline (time=0) measurements are included by design. Equal to 1 if yes, 0 if no. |

This function is designed to be used in conjunction with multiple outputation and hence assumes no fixed effects in the visit process model. The visit process model thus contains a baseline hazard and a random effect only.

the regression coefficients corresponding to the fixed effects in the outcome regression model. Closed form expressions for standard errors of the regression coefficients are not available, and Liang et al (2009) recommend obtaining these through bootstrapping.

Liang Y, Lu W, Ying Z. Joint modelling and analysis of longitudinal data with informative observation times. Biometrics 2009; 65:377-384.

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.