Fits a single model.
Syntax
status = object.FitModel ()
status = object.FitModel (modelName)
status = object.FitModel (modelNumber)
The FitModel method syntax has the following parts:
Part |
Description |
status |
Zero if the model was successfully fitted. Nonzero otherwise. |
object |
An object of type AmosEngine. |
modelName |
The name of a model. |
modelNumber |
(Integer) A model number. The first model is model number 1. |
Placement: [3].
Remarks
If neither modelName nor modelNumber is specified, model number 1 is fitted.
All other methods that can be used to obtain the results of an analysis (such as Rmsea, Cmin, GetEstimates, and so forth) will provide results only for the most recently fitted model. Say that you want to print the RMSEA for each of several models. This can be done as follows.
Dim Sem As AmosEngine
. . .
Sem.FitModel 1
Debug.Print Sem.Rmsea
Sem.FitModel 2
Debug.Print Sem.Rmsea
Sem.FitModel 3
Debug.Print Sem.Rmsea
. . .
See Also