Learn R Programming

gptk (version 1.0)

modelExpandParam: Update a model structure with new parameters or update the posterior processes.

Description

Update a model structure or component with new parameters, or update the posterior processes.

Usage

model <- modelExpandParam(model, param, untransformed.values=FALSE)
model <- modelUpdateProcesses(model)

Arguments

model
the model structure to be updated.
param
vector of parameters.
untransformed.values
vector contains actual values, not transformed values used by the optimisers.

Value

  • modelupdated model structure.

Details

model <- modelExpandParam(model, param) returns a model structure filled with the parameters in the given vector. This is used as a helper function to enable parameters to be optimised in, for example, the optimisation functions. model <- modelUpdateProcesses(model) updates posterior processes of the given model.

See Also

modelExtractParam