o_control function

Function to control estimation of smooth offset

Function to control estimation of smooth offset

o_control(k_min = 20, rule = 2, silent = TRUE, cyclic = FALSE, knots = NULL)

Arguments

  • k_min: maximal number of k in s()
  • rule: which rule to use in approx() of the response before calculating the global mean, rule=1 means no extrapolation, rule=2 means to extrapolate the closest non-missing value, see approx
  • silent: print error messages of model fit?
  • cyclic: defaults to FALSE, if TRUE cyclic splines are used
  • knots: arguments knots passed to gam

Returns

a list with controls

  • Maintainer: David Ruegamer
  • License: GPL-2
  • Last published: 2023-08-12