R/plot_ff_coeffs.R

Defines functions plot_ff_coeffs

Documented in plot_ff_coeffs

plot_ff_coeffs <- function(object, b)
{
  p <- object$vars
  n <- 1:length(p)
  t <- object$gpY
  s <- object$gpX[[n[b]]]
  if(b > length(n))
    stop("Error!! b should be smaller than", " ", length(n), "!")
  coefficients <- object$coefficients[[n[b]]]
  
  
  return(image.plot(t, s, coefficients, main = parse(text = sprintf('hat(beta)[%s](s,t)', b)), 
               xlab = expression(t), ylab = expression(s), mgp = c(2, 0.5, 0)))
}

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.