learn_noise: Estimate a set of coefficients for the noise variance

View source: R/estimate_noise.R

learn_noiseR Documentation

Estimate a set of coefficients for the noise variance

Description

This function estimates the noise variance by fitting a linear model on the squared difference between the observed curves and their smoothed version.

Usage

learn_noise(df)

Arguments

df

Dataframe containing the real dataset.

Value

An object of class 'gam' from the function mgcv::gam.

See Also

smooth.spline, predict, lm, coef

Examples

## Not run: 
if(interactive()){
 attach(powerconsumption)
 coefs <- learn_noise(df = powerconsumption)
 }

## End(Not run)

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