plot_freg: Plot coefficients from FREG model

View source: R/plot_freg.R

plot_fregR Documentation

Plot coefficients from FREG model

Description

Plot coefficients from FREG model

Usage

plot_freg(object)

Arguments

object

FREG model

Value

plot of the beta coefficient regression functions for each variable

Examples


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)



FREG documentation built on May 9, 2022, 5:07 p.m.

Related to plot_freg in FREG...