Please enable JavaScript to view this site.

IBM® SPSS® Amos™ 28

Menu: ToolsExport toStan

Creates files needed as input to Stan for fitting the current Amos model. Exporting a model to Stan creates a new folder and two files in that folder. Default names for the created folder and files are determined by the name of the amw file that contains the model currently open in the Amos Graphics window. If that amw file is called xxxx.amw, the exported files are placed in a folder called xxxx_stan, which is created (if necessary) as a subfolder of the folder that contains xxxx.amw. Two files are created in the xxxx_stan folder: xxxx.stan, which contains the Stan program that describes the model, and xxxx.Data.R, which contains the data in Stan format.

If CmdStan  is currently installed, it can be run automatically after the model is exported. If R, RStan and RStudio are currently installed, RStudio can be run automatically to fit the model using RStan. (See the Stan tab of the Interface Properties dialog.)

 

 

Limitations of the export procedure

Models are limited to a single group.

Models must be recursive.

Residual variables must be uncorrelated with each other. This means that Examples 6b and 6c cannot be exported to Stan, although Example 6a can.

Any set of mutually correlated exogenous variables must have an unconstrained positive definite covariance matrix.

Raw data is required (not sample moments).

All variables must be numeric.

Data must be complete. (There can be no missing values.)

 

© 2021 Amos Development Corporation