Please enable JavaScript to view this site.

IBM® SPSS® Amos™ 28

In the following program, the GenerateDefaultCovariances method prevents the automatic generation of a covariance parameter for the two variables, spatial and verbal. Spatial and verbal are therefore required to be uncorrelated.

Module MainModule
    ' GenerateDefaultCovariances Method Example 2
    Sub Main()
        Dim Sem As New AmosEngineLib.AmosEngine
 
        Sem.GenerateDefaultCovariances(False)
 
        Sem.TextOutput()
 
        Sem.BeginGroup(AmosEngine.AmosDir & "Examples\English\UserGuide.xls", "Grnt_fem")
        Sem.AStructure("visperc = (1) spatial + (1) err_v")
        Sem.AStructure("cubes = spatial + (1) err_c")
        Sem.AStructure("lozenges = spatial + (1) err_l")
        Sem.AStructure("paragraph = (1) verbal + (1) err_p")
        Sem.AStructure("sentence = verbal + (1) err_s")
        Sem.AStructure("wordmean = verbal + (1) err_w")
 
        Sem.Dispose()
    End Sub
End Module

© 2021 Amos Development Corporation