Description Usage Arguments Details Value References
View source: R/NRRR.plot.RegSurface.r
This function creates heatmaps for the functional regression surface in a multivariate functional linear regression. Based on the fitting results from the nested reduced-rank regression, different kinds of regression surfaces (at the original scale or the latent scale) can be visualized to give a clear illustration of the functional correlation between the user-specified predictor (or latent predictor) trajectory and response (or latent response) trajectory.
1 2 3 4 5 |
Ag, Bg, Al, Bl, rx, ry |
the estimated U, V, A, B, rx and ry from a NRRR fitting. |
sseq |
the sequence of time points at which the predictor trajectory is observed. |
phi |
the set of basis functions to expand the predictor trajectory. |
tseq |
the sequence of time points at which the response trajectory is observed. |
psi |
the set of basis functions to expand the response trajectory. |
x_ind, y_ind |
two indices to locate the regression surface for which the heat map is to be drawn.
If |
x_lab, y_lab |
the user-specified x-axis (with x_lab for predictor) and y-axis (with y_lab for response) label, and it should be given as a character string, e.g., x_lab = "Temperature". |
tseq_index, sseq_index |
the user-specified x-axis (with sseq_index for predictor) and y-axis (with tseq_index for response) tick marks, and it should be given as a vector of character strings of the same length as sseq or tseq, respectively. |
method |
'original': the function plots the correlation heatmap between the original functional response y_i(t) and the original functional predictor x_j(s); 'latent': the function plots the correlation heatmap between the latent functional response y^*_i(t) and the latent functional predictor x^*_j(s); 'y_original': the function plots the correlation heatmap between y_i(t) and x^*_j(s); 'x_original': the function plots the correlation heatmap between y^*_i(t) and x_j(s). |
More details and the examples of its usage can be found in the vignette of electricity demand analysis.
A ggplot2 object.
Liu, X., Ma, S., & Chen, K. (2020). Multivariate Functional Regression via Nested Reduced-Rank Regularization. arXiv: Methodology.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.