The MASTA algorithm is a semi-supervised learning method.
The implementation has 2 steps.
In Step I, longitudinal
and follow_up_time
will be used to extract features from estimated subject-specific intensity functions of individual encounters.
In Step II, survival
and follow_up_time
will be used to train and evaluate risk prediction models with survival outcomes.
For the details of the data preparation, please see the vignette for it.
Load the package into R.
library(MASTA)
head(longitudinal) table(longitudinal$code) head(follow_up_time) ; nrow(follow_up_time) ; head(survival) nrow(survival)
system.time(Z <- fpca.combine(longitudinal, follow_up_time, K.select = "PropVar"))
Using the object derived from fpca.combine
and the two data files -- survival
and follow_up_time
system.time(b <- masta.fit(Z, survival, follow_up_time, Tend=1, cov_group = NULL, thresh = 0.7, PCAthresh = 0.9, seed = 100)) names(b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.