learn_mean: Create a model for the estimation of the mean

View source: R/estimate_mean.R

learn_meanR Documentation

Create a model for the estimation of the mean

Description

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

Usage

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

glmnet

Examples

## Not run: 
if(interactive()){
 attach(powerconsumption)
 mod <- learn_mean(df = powerconsumption, k = 50)
 }

## End(Not run)

StevenGolovkine/simulater documentation built on April 4, 2022, 5:04 a.m.