This function creates a glmnet
model for
the mean curve of a real dataset.
learn_mean(df, k = 50)
Dataframe containing the real dataset.
Number of function to be used to fit the data, default=50.
A glmnet
model for the mean curve.
if (FALSE) {
if(interactive()){
attach(powerconsumption)
mod <- learn_mean(df = powerconsumption, k = 50)
}
}