plot_freg | R Documentation |
Plot coefficients from FREG model
plot_freg(object)
object |
FREG model |
plot of the beta coefficient regression functions for each variable
library(fda) y = log10(apply(CanadianWeather$dailyAv[1:335,,2],2,sum)) x = CanadianWeather$dailyAv[1:335,,1] # temperature xbasis = create.fourier.basis(c(1,335),5) xfd = smooth.basis(c(1:335),x,xbasis)$fd bbasis = create.fourier.basis(c(1,335),5) betalist = list(bbasis) formula = y ~ xfd freg.model = freg(formula = formula, betalist = betalist) plot_freg(freg.model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.