rstapDP vignettes. — longitudinal_clusters" />
R/doc-datasets.R
longitudinal_clusters.Rd
Longitudinal Clustering Benvo for use in rstapDP vignettes.
longitudinal_clusters
A Benvo
consisting of a subject and subject-distance dataframes
The outcome in the subject dataframe is simulated using a cluster specific effect as follows: $$E[Y_{ij}|b_{i1},b_{i2}] = 33 - 2.2 \text{sex}_i + .1*(year_{ij}) + f_k(\text{FFR exposure}) +b_{i1} + b_{i2}(year_{ij}) $$ Where \(k= 1,2,3\) with varying probabilities.
the generating code on Github.