Generalized Additive Model (GAM) smoothing helper function
Source:R/correct-drift-batch.R
fun_gam_smooth.Rd
Function for penalized spline-based smoothing using GAM, for use by fun_correct_drift
Arguments
- tbl
Table (
tibble
ordata.frame
) containing the fieldsqc_type
,x
(run order number), andy
(variable)- ref_qc_types
QC types used for the smoothing (fit) by GAM
- log_transform_internal
Apply log transformation internally for smoothing if
TRUE
(default). This does not affect the final data, which remains untransformed.- ...
Additional arguments forwarded to
mgcv::gam