Please enable JavaScript to view this site.

IBM® SPSS® Amos™ 28

Navigation: What was new in Amos 25 > Executing Amos in an R program

Manual page for the R function, amos

Scroll Prev Top Next More

Description

Executes Amos

Usage

amos(data="", model="", wait=TRUE, run=FALSE)

Arguments

dataThe name of a data frame or a character string that gives the path to an rds data file.
modelA character string that gives the path to an amw file that contains a path diagram. If model="" (the default) Amos opens with the most recently used amw file.
waitIf wait=FALSE, the amos function returns (and your R program continues to execute) as soon as Amos starts to open. If wait=TRUE (the default), the amos function does not return until the Amos window closes.
runIf run=FALSE (the default), Amos opens and then waits for user interaction. In other words, Amos waits for a user to do something with the mouse or keyboard. If run=TRUE, Amos performs the following sequence:

1.The Amos window opens.

2.Amos fits the specified model to the specified data set (as though a user had clicked Analyze > Calculate Estimates.)

3.The Amos window closes (as though a user had clicked File > Exit.)

 

© 2021 Amos Development Corporation