When writing an Amos program, you have to pay attention to the order in which the Amos engine's methods are called. Amos methods are divided into three general groups.
Group 1 — Declarative Methods
These are computational and output options that apply to the entire analysis. These methods tell the Amos Engine which statistics to compute and how to compute them.
Group 2 — Data and Model Specification Methods
This group consists of data description and model specification commands for a sample of data with multigroup or multisample analyses. These commands may vary among samples.
Group 3 — Methods for Retrieving Results
These are commands to…well, retrieve results.
The rule is that groups must appear in order: Group 1, then Group 2, and finally Group 3.
There is also a special group that consists only of the Initialize method. If the optional Initialize method is used, it must come even before the Group 1 methods. Some methods can be placed in more than one group.