Description Usage Arguments Examples
This function calls 'mstate::msprep()' with the appropriate argument for the transition matrix on an array of events (as returned by 'get_evmat()') by calling 'as.data.frame()' returns a 'msdata' object (consisting of a table in long format and the coresponding transistion matrix)
1 2 |
id_sample |
A sample of IDs (will be sample from, if length(id_sample)> max_n) |
evmat |
An event matrix |
df_vars |
Optional dataframe containing predictor variables |
min_n |
Minimum number of cases per transtition to state under observation (Default to 16) |
max_n |
Maximum number of total cases (Default to 1000) |
1 2 3 4 5 6 7 | ## Not run:
df_ind <- get_exmpl_df()
df_fam <- data.frame(idf = c(0,unique(df_ind$momid[df_ind$momid>0])), fall = "C")
evmat <- get_evmat(df_ind, df_fam)
ms1 <- built_ms(evmat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.