Learn R Programming

FREG (version 1.1)

plot_freg: 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

Run this code
# NOT RUN {
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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab