IRIS Toolbox Reference Manual

## subsasgn

Subscripted assignment for model and systemfit objects

#### Syntax for assigning parameterisations from other object

    M(Inx) = N

#### Syntax for deleting specified parameterisations

    M(Inx) = []

#### Syntax for assigning parameter values or steady-state values

    M.Name = X
    M(Inx).Name = X
    M.Name(Inx) = X

#### Syntax for assigning std deviations or cross-correlations of shocks

    M.std_Name = X
    M.corr_Name1__Name2 = X

Note that a double underscore is used to separate the Names of shocks in correlation coefficients.

#### Input arguments

- `M` [ model | systemfit ] - Model or systemfit object that will be assigned new parameterisations or new parameter values or new steady-state values.

- `N` [ model | systemfit ] - Model or systemfit object compatible with `M` whose parameterisations will be assigned (copied) into `M`.

- `Inx` [ numeric ] - Inx of parameterisations that will be assigned or deleted.

- `Name`, `Name1`, `Name2` [ char ] - Name of a variable, shock, or parameter.

- `X` [ numeric ] - A value (or a vector of values) that will be assigned to a parameter or variable Named `Name`.

#### Output arguments

- `M` [ model | systemfit ] - Model or systemfit object with newly assigned or deleted parameterisations, or with newly assigned parameters, or steady-state values.

#### Description

#### Example

Expand the number of parameterisations in a model or systemfit object that has initially just one parameterisation:

    m(1:10) = m;

The parameterisation is simply copied ten times within the model or systemfit object.

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.