Plot bootstrapped estimates of the scalar-on-function regression coefficient for empirical uncertainty quantification. For each iteration, a data set is sampled with replacement from the training data use to fit the model, and the regression coefficient is estimated.
plot_bootstrap_sof_pc(mod, nboot = 25, ncores = 1)
A list obtained as output from
i.e. a fitted scalar-on-function linear regression model.
Number of bootstrap replicates
If you want estimate the bootstrap replicates in parallel, give the number of cores/threads.
A ggplot showing several bootstrap replicates of the multivariate functional coefficients estimated fitting the scalar-on-function linear model. Gray lines indicate the different bootstrap estimates, the black line indicate the estimate on the entire dataset.