@@ -93,19 +93,13 @@ function sem_summary(
9393 sorted_columns = [:to , :estimate , :param , :value_fixed , :start ]
9494 loading_columns = sort_partially (sorted_columns, columns)
9595 header_cols = copy (loading_columns)
96- replace! (header_cols, :parameter_type => :type )
9796
9897 for var in partable. latent_vars
9998 indicator_indices = findall (
10099 (partable. columns[:from ] .== var) .&
101- (partable. columns[:parameter_type ] .== :→ ) .&
100+ (partable. columns[:relation ] .== :→ ) .&
102101 (partable. columns[:to ] .∈ [partable. observed_vars]),
103102 )
104- loading_array = reduce (
105- hcat,
106- check_round (partable. columns[c][indicator_indices]; digits = digits) for
107- c in loading_columns
108- )
109103
110104 printstyled (var; color = secondary_color)
111105 print (" \n " )
@@ -122,7 +116,7 @@ function sem_summary(
122116 printstyled (" Directed Effects: \n " ; color = color)
123117
124118 regression_indices = findall (
125- (partable. columns[:parameter_type ] .== :→ ) .& (
119+ (partable. columns[:relation ] .== :→ ) .& (
126120 (
127121 (partable. columns[:to ] .∈ [partable. observed_vars]) .&
128122 (partable. columns[:from ] .∈ [partable. observed_vars])
@@ -138,7 +132,7 @@ function sem_summary(
138132 ),
139133 )
140134
141- sorted_columns = [:from , :parameter_type , :to , :estimate , :param , :value_fixed , :start ]
135+ sorted_columns = [:from , :relation , :to , :estimate , :param , :value_fixed , :start ]
142136 regression_columns = sort_partially (sorted_columns, columns)
143137
144138 regression_array = reduce (
@@ -147,7 +141,6 @@ function sem_summary(
147141 c in regression_columns
148142 )
149143 regression_columns[2 ] = Symbol (" " )
150- replace! (regression_columns, :parameter_type => :type )
151144
152145 print (" \n " )
153146 pretty_table (
@@ -161,11 +154,11 @@ function sem_summary(
161154 printstyled (" Variances: \n " ; color = color)
162155
163156 variance_indices = findall (
164- (partable. columns[:parameter_type ] .== :↔ ) .&
157+ (partable. columns[:relation ] .== :↔ ) .&
165158 (partable. columns[:to ] .== partable. columns[:from ]),
166159 )
167160
168- sorted_columns = [:from , :parameter_type , :to , :estimate , :param , :value_fixed , :start ]
161+ sorted_columns = [:from , :relation , :to , :estimate , :param , :value_fixed , :start ]
169162 variance_columns = sort_partially (sorted_columns, columns)
170163
171164 variance_array = reduce (
@@ -174,7 +167,6 @@ function sem_summary(
174167 c in variance_columns
175168 )
176169 variance_columns[2 ] = Symbol (" " )
177- replace! (variance_columns, :parameter_type => :type )
178170
179171 print (" \n " )
180172 pretty_table (
@@ -188,11 +180,11 @@ function sem_summary(
188180 printstyled (" Covariances: \n " ; color = color)
189181
190182 variance_indices = findall (
191- (partable. columns[:parameter_type ] .== :↔ ) .&
183+ (partable. columns[:relation ] .== :↔ ) .&
192184 (partable. columns[:to ] .!= partable. columns[:from ]),
193185 )
194186
195- sorted_columns = [:from , :parameter_type , :to , :estimate , :param , :value_fixed , :start ]
187+ sorted_columns = [:from , :relation , :to , :estimate , :param , :value_fixed , :start ]
196188 variance_columns = sort_partially (sorted_columns, columns)
197189
198190 variance_array = reduce (
@@ -201,7 +193,6 @@ function sem_summary(
201193 c in variance_columns
202194 )
203195 variance_columns[2 ] = Symbol (" " )
204- replace! (variance_columns, :parameter_type => :type )
205196
206197 print (" \n " )
207198 pretty_table (
@@ -213,15 +204,13 @@ function sem_summary(
213204 print (" \n " )
214205
215206 mean_indices = findall (
216- (partable. columns[:parameter_type ] .== :→ ) .&
217- (partable. columns[:from ] .== Symbol (" 1" )),
207+ (partable. columns[:relation ] .== :→ ) .& (partable. columns[:from ] .== Symbol (" 1" )),
218208 )
219209
220210 if length (mean_indices) > 0
221211 printstyled (" Means: \n " ; color = color)
222212
223- sorted_columns =
224- [:from , :parameter_type , :to , :estimate , :param , :value_fixed , :start ]
213+ sorted_columns = [:from , :relation , :to , :estimate , :param , :value_fixed , :start ]
225214 variance_columns = sort_partially (sorted_columns, columns)
226215
227216 variance_array = reduce (
@@ -230,7 +219,6 @@ function sem_summary(
230219 c in variance_columns
231220 )
232221 variance_columns[2 ] = Symbol (" " )
233- replace! (variance_columns, :parameter_type => :type )
234222
235223 print (" \n " )
236224 pretty_table (
0 commit comments