function.wrapper function

Utility extract functions

Utility extract functions

Several functions have been added to extract components from externally saved crm models function.wrapper accepts a character string for a model, loads it and then runs the specified function on it. Currently, only 2 functions have been defined: fx.aic to compute aic and fx.par.count to extract parameter count. Currently parameters other than x (eg chat) are passed through the environment. Possibly could have used ...

function.wrapper(x,fx,base="",...) fx.aic(x) fx.par.count(x)

Arguments

  • x: character string for the model stored as external object (.rda)
  • fx: function to be called for each model
  • base: base name for models
  • ...: additional values that are added to environment of fx (eg chat for fx.aic)

Returns

extracted value defined by function

Author(s)

Jeff Laake

  • Maintainer: Jeff Laake
  • License: GPL (>= 2)
  • Last published: 2023-10-19

Useful links