plot_lfreg | R Documentation |
Plot coefficients from LFREG model
plot_lfreg(object)
object |
LFREG model |
plot of the beta coefficient regression functions for each variable
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.