View source: R/estimate_mean.R
learn_mean | R Documentation |
This function creates a glmnet
model for
the mean curve of a real dataset.
learn_mean(df, k = 50)
df |
Dataframe containing the real dataset. |
k |
Number of function to be used to fit the data, default=50. |
A glmnet
model for the mean curve.
glmnet
## Not run: if(interactive()){ attach(powerconsumption) mod <- learn_mean(df = powerconsumption, k = 50) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.