Data-driven basis. Two main basis computed from the data are used in the literature: the most parsimonious one is given by the functional principal components [19, 20] and the one that maximizes the covariance among the response and the functional predictor uses the functional partial least square components (PLS) [21, 22].