The following steps to prepare for exporting to Stan are typically performed only once.
1.Click View→Interface Properties→Stan to open the Stan tab.
2.Put a check mark next to Ask where to save if you want to specify the folder where Amos will save the files it creates for exporting to Stan. Of you leave this check box unchecked, Amos will save the files in a subfolder of the folder that contains the model's amw file. If the Amos model is in the file called xxxxx.amw, the Stan-related files created by amos will be saved in a folder called xxxxx_stan.
3.Put a check mark next to Open the CmdStan IDE if CmdStan is installed and you want to open Amos's CmdStan IDE each time you export a model to Stan.
4.Put a check mark next to Open RStudio. if RStudio is installed along with the RStan package and want to open RStudio each time you export a model to Stan.
5.Put a check mark next to Open Windows File Explorer in order to open File Explorer to view the exported files each time you export a model to Stan.
6.If CmdStan is installed, enter the folder that contains the CmdStan files in Location of CmdStan.
7.If RStudio is installed, enter the folder that contains the RStudio files in Location of RStudio.
The following step is performed each time you export a model to Stan.
1.Click Tools→Export to→Stan.
What happens next depends on choices you made on the View→Interface Properties→Stan tab.
•If there is a check mark next to Open Windows File Explorer, File explorer opens showing the files that were created by the export to Stan. See the topic Open Windows File Explorer to learn what you can do with those files.
•If there is a check mark next to Open the CmdStan IDE, the CmdStan IDE will open.
•If there is a check mark next to Open RStudio and RStudio is installed, RStudio will open.