Changes the constraints on a model that was previously defined by the Model method. There are some limitations on the extent to which a model can be changed.
Syntax
object.ReviseModel (modelName, constraint1)
object.ReviseModel (modelName, constraint1, constraint2)
object.ReviseModel (modelName, constraint1, constraint2, constraint3)
...
The ReviseModel method syntax is identical to the Model method syntax. The ReviseModel method syntax has the following parts:
Part |
Description |
object |
An object of type AmosEngine. |
modelName |
The name of a model previously defined by the Model method. |
constraint1 |
Either: A string of the form p1=p2=p3=..., where each pi is either a parameter name or a number. At most one of the pi can be a number. Or: The name of another model. |
constraint2 |
Same as constraint1 |
constraint3 |
Same as constraint1 |
... |
... |
Placement: [3].
Remarks
The constraints expressed by constraint1, constraint2,… replace the constraints of the original model. There are the following limitations on the changes model changes that can be made by ReviseModel.
The number of equality constraints in the revised model cannot exceed the number of constraints in the original model. For example, the ReviseModel method in following program fragment raises an error because it attempts to create four constraints on a model that originally had only three.
…
Dim Sem As New AmosEngine
…
Sem.Model "Model 1", "a=0", "b=0", "c=0"
…
Sem.ReviseModel "Model 1", "u=v=w=x=0"
…
The constraints in the revised model may only employ constants of 0, 1, or constants that have been previously been assigned to parameter values with the Model, AStructure, MStructure, Path, Cov, Var, Mean, or Intercept methods.