plot_sf_coeffs function

Plot of regression coefficient functions of a scalar-on-function regression model

Plot of regression coefficient functions of a scalar-on-function regression model

This function is used to obtain the plots of regression coefficient functions of a scalar-on-function regression model based on output object obtained from get.sf.coeffs.

plot_sf_coeffs(object, b)

Returns

No return value, called for side effects.

Arguments

  • object: The output object of get.sf.coeffs.
  • b: An integer value indicating which regression parameter function to be plotted.

Author(s)

Ufuk Beyaztas and Han Lin Shang

Examples

sim.data <- generate.sf.data(n = 400, n.pred = 5, n.gp = 101) Y <- sim.data$Y X <- sim.data$X gp <- rep(list(seq(0, 1, length.out = 101)), 5) # grid points of Xs model.fit <- rob.sf.reg(Y, X, emodel = "classical", gp = gp) coefs <- get.sf.coeffs(model.fit) plot_sf_coeffs(object = coefs, b = 1)
  • Maintainer: Ufuk Beyaztas
  • License: GPL-3
  • Last published: 2024-01-23

Useful links