Learn R Programming

TIMP (version 1.13.6)

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

Description

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.

Usage

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

Value

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

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

Author

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

See Also

initModel, fitModel