P: Generate a parameter transformation function

Description Usage Arguments Value

View source: R/parameters.R

Description

Generate parameter transformation function from a named character vector or object of class eqnvec. This is a wrapper function for Pexpl and Pimpl. See for more details there.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
P(
  trafo = NULL,
  parameters = NULL,
  condition = NULL,
  attach.input = FALSE,
  keep.root = TRUE,
  compile = FALSE,
  modelname = NULL,
  method = c("explicit", "implicit"),
  verbose = FALSE
)

Arguments

trafo

object of class eqnvec or named character or list thereof. In case, trafo is a list, P() is called on each element and conditions are assumed to be the list names.

parameters

character vector

condition

character, the condition for which the transformation is generated

attach.input

attach those incoming parameters to output which are not overwritten by the parameter transformation.

keep.root

logical, applies for method = "implicit". The root of the last evaluation of the parameter transformation function is saved as guess for the next evaluation.

compile

logical, compile the function (see funC0)

modelname

character, see funC0

method

character, either "explicit" or "implicit"

verbose

Print out information during compilation

Value

An object of class parfn.


dMod documentation built on Jan. 27, 2021, 1:07 a.m.