plot_lfreg: Plot coefficients from LFREG model

View source: R/plot_lfreg.R

plot_lfregR Documentation

Plot coefficients from LFREG model

Description

Plot coefficients from LFREG model

Usage

plot_lfreg(object)

Arguments

object

LFREG model

Value

plot of the beta coefficient regression functions for each variable

Examples

library(fda)
precipitation_data = CanadianWeather$daily[1:334,,"Precipitation.mm"]
annualprec = apply(precipitation_data,2,sum) # without December
y = ifelse(annualprec<mean(annualprec), 0, 1)
y = as.factor(y)
x = CanadianWeather$daily[1:334,,"Temperature.C"]
xbasis = create.fourier.basis(c(1,334),5) # 5 basis functions
xfd = smooth.basis(c(1:334),x,xbasis)$fd
bbasis = create.fourier.basis(c(0,334),5)
betalist = list(bbasis)
formula = y ~ xfd
lfreg.model = lfreg(formula, betalist = betalist)
plot_lfreg(lfreg.model)


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

Related to plot_lfreg in FREG...