View source: R/plot_ff_coeffs.R
plot_ff_coeffs | R Documentation |
This function is used to obtain image plots of bivariate regression coefficient functions of a function-on-function regression model based on output object obtained from get.ff.coeffs
.
plot_ff_coeffs(object, b)
object |
The output object of |
b |
An integer value indicating which regression parameter function to be plotted. |
No return value, called for side effects.
Ufuk Beyaztas and Han Lin Shang
D. Nychka and R. Furrer and J. Paige and S. Sain (2021) fields: Tools for spatial data. R package version 14.1, URL: https://github.com/dnychka/fieldsRPackage.
sim.data <- generate.ff.data(n.pred = 5, n.curve = 200, n.gp = 101)
Y <- sim.data$Y
X <- sim.data$X
gpY = seq(0, 1, length.out = 101) # grid points of Y
gpX <- rep(list(seq(0, 1, length.out = 101)), 5) # grid points of Xs
model.fit <- rob.ff.reg(Y, X, model = "full", emodel = "classical",
gpY = gpY, gpX = gpX)
coefs <- get.ff.coeffs(model.fit)
plot_ff_coeffs(object = coefs, b = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.