modifyModel function

Allows the starting values for parameters associated with a model to be updated with the values found in fitting the model.

Allows the starting values for parameters associated with a model to be updated with the values found in fitting the model.

Allows the starting values for parameters associated with a model to be updated with the values found in fitting the model. That is, a model is specified with initModel. Then fitModel

is used to optimize the starting values for parameters. modifyModel

allows modification of the starting values in the model specification with the optimized values found via fitModel.

modifyModel(model = list(), newest = list(), exceptslots = vector() )

Arguments

  • model: an object of class dat returned by initModel; if this argument is of length(0), which is the default, then the last model fit is used (which is found in the global variable .currModel@model)
  • newest: an object of class theta containing new parameter estimates; if this argument is of length(0), which is the default, then the parameter estimates associated with dataset 1 in the last model fit are used (which are found in the global variable .currTheta[[1]])
  • exceptslots: a vector of character vector of slot names whose corresponding slots are to be left out of the update

Returns

an object of class dat that returns the results of calling initModel with the new starting values.

Author(s)

Katharine M. Mullen, Ivo H. M. van Stokkum

See Also

initModel, fitModel

  • Maintainer: Joris Snellenburg
  • License: GPL (>= 2)
  • Last published: 2022-12-12