Specifies the number of variables in the model.
Syntax
object.VariableCount (nVariables)
The VariableCount method syntax has the following parts:
Part |
Description |
object |
An object of type AmosEngine. |
nVariables |
The number of variables in the model. |
Placement: [2].
Default
When the VariableCount method is not used, no error checking is done based on the number of variables.
Remarks
Amos checks nVariables for consistency with the model and the data file. If a discrepancy is found, Amos reports the discrepancy and quits. Spelling or typing errors are frequently detected by this check, since two variant spellings of a variable name will be treated as references to two distinct variables.
In a multiple-group analysis, the VariableCount method can be used once per group.
See Also