gams4dts_define_bam_formula: Define an 'bam' formula in 'GAMS4DTS'

View source: R/gams4dts_support.R

gams4dts_define_bam_formulaR Documentation

Define an bam formula in GAMS4DTS

Description

This function is used to pass user-defined variables in GAMS4DTS into an bam formula. The function is not intended to be called outside of GAMS4DTS.

Usage

gams4dts_define_bam_formula(
  response = "depth",
  fixed_covariates,
  smooth_covariates,
  dat
)

Arguments

response

A character input specifying the name of the response variable in dat (i.e. "depth").

fixed_covariates

A list containing covariates implemented as fixed effects.

smooth_covariates

A list containing smooth covariates, including their names and basis functions.

dat

A dataframe.

Value

An bam model formula for GAMS4DTS.

Author(s)

Edward Lavender


edwardlavender/Tools4ETS documentation built on Nov. 29, 2022, 7:41 a.m.