R/plot_sf_coeffs.R

Defines functions plot_sf_coeffs

Documented in plot_sf_coeffs

plot_sf_coeffs <-
function(object, b)
{
  coefficients <- object$coefficients
  gp <- object$gp
  n <- 1:length(coefficients)
  if(b > length(n))
    stop("Error!! b should be smaller than", " ", length(n), "!")
  
  return(plot(gp[[b]], coefficients[[b]], type = "l", xlab = "\n Grid point (s)",
       ylab = "", main = bquote(hat(beta)[.(b)](s))))
}

Try the robflreg package in your browser

Any scripts or data that you put into this service are public.

robflreg documentation built on May 29, 2024, 3:55 a.m.