Please enable JavaScript to view this site.

IBM® SPSS® Amos™ 28

This example demonstrates the Stable method.

Imports System.Diagnostics
Module MainModule
    ' Stable Method Example
    Sub Main()
        Dim Sem As New AmosEngineLib.AmosEngine
        Sem.TextOutput()
 
        Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Fels_fem")
        Sem.GroupName("girls")
        Sem.AStructure("academic = GPA + attract + e1 (1)")
        Sem.AStructure("attract = height + weight + rating + academic + e2 (1)")
        Sem.AStructure("e2 <--> e1")
        Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Fels_mal")
        Sem.GroupName("boys")
        Sem.AStructure("academic = GPA + attract + e1 (1)")
        Sem.AStructure("attract = height + weight + rating + academic + e2 (1)")
        Sem.AStructure("e2 <--> e1")
 
        If Sem.Admissible Then
            Debug.WriteLine("Admissible")
        Else
            Debug.WriteLine("Inadmissible")
        End If
 
        If Sem.Stable Then
            Debug.WriteLine("Stable")
        Else
            Debug.WriteLine("Unstable")
        End If
 
        Sem.Dispose()
    End Sub
End Module

© 2021 Amos Development Corporation