Overview

This illustrate how to validate a derived MASTA algorithm with a new data set.

1: Derivation of the MASTA alogrithm

library(MASTA)
fpca <- fpca.combine(longitudinal, follow_up_time, K.select = "PropVar")
ft <- masta.fit(fpca, survival, follow_up_time, Tend=1, cov_group = NULL, thresh = 0.7, PCAthresh = 0.9, seed = 100)

2: Validation of the MASTA alogrithm with a new dataset

new data

head(new_longitudinal)

head(new_follow_up_time) ; 

head(new_survival)

Run

val=masta_validation(ft, new_longitudinal, new_follow_up_time, new_survival)
names(val)


celehs/PETLER documentation built on Sept. 3, 2021, 8:21 a.m.