Executes Amos
amos(data="", model="", wait=TRUE, run=FALSE)
data | The name of a data frame or a character string that gives the path to an rds data file. |
model | A 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. |
wait | If 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. |
run | If 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.)