This function creates a glmnet model for the mean curve of a real dataset.

learn_mean(df, k = 50)

Arguments

df

Dataframe containing the real dataset.

k

Number of function to be used to fit the data, default=50.

Value

A glmnet model for the mean curve.

See also

Examples

if (FALSE) {
if(interactive()){
 attach(powerconsumption)
 mod <- learn_mean(df = powerconsumption, k = 50)
 }
}