Skip to content

Commit 03416eb

Browse files
Merge pull request #240 from StructuralEquationModels/rename_sem_summary
close #158
2 parents e051d71 + 1fe165b commit 03416eb

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

docs/src/tutorials/collection/multigroup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ We now fit the model and inspect the parameter estimates:
8383
```@example mg; ansicolor = true
8484
solution = sem_fit(model_ml_multigroup)
8585
update_estimate!(partable, solution)
86-
sem_summary(partable)
86+
details(partable)
8787
```
8888

8989
Other things you can query about your fitted model (fit measures, standard errors, etc.) are described in the section [Model inspection](@ref) and work the same way for multigroup models.

docs/src/tutorials/constraints/constraints.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ model_fit = sem_fit(model)
5252
5353
update_estimate!(partable, model_fit)
5454
55-
sem_summary(partable)
55+
details(partable)
5656
```
5757

5858
### Define the constraints
@@ -165,7 +165,7 @@ update_partable!(
165165
solution(model_fit_constrained),
166166
)
167167
168-
sem_summary(partable)
168+
details(partable)
169169
```
170170

171171
As we can see, the constrained solution is very close to the original solution (compare the columns estimate and estimate_constr), with the difference that the constrained parameters fulfill their constraints.

docs/src/tutorials/first_model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ and compute fit measures as
119119
fit_measures(model_fit)
120120
```
121121

122-
We can also get a bit more information about the fitted model via the `sem_summary()` function:
122+
We can also get a bit more information about the fitted model via the `details()` function:
123123

124124
```@example high_level; ansicolor = true
125-
sem_summary(model_fit)
125+
details(model_fit)
126126
```
127127

128128
To investigate the parameter estimates, we can update our `partable` object to contain the new estimates:
@@ -134,7 +134,7 @@ update_estimate!(partable, model_fit)
134134
and investigate the solution with
135135

136136
```@example high_level; ansicolor = true
137-
sem_summary(partable)
137+
details(partable)
138138
```
139139

140140
Congratulations, you fitted and inspected your very first model!

docs/src/tutorials/inspection/inspection.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ model_fit = sem_fit(model)
5353

5454
you end up with an object of type [`SemFit`](@ref).
5555

56-
You can get some more information about it by using the `sem_summary` function:
56+
You can get some more information about it by using the `details` function:
5757

5858
```@example colored; ansicolor = true
59-
sem_summary(model_fit)
59+
details(model_fit)
6060
```
6161

6262
To compute fit measures, we use
@@ -73,12 +73,12 @@ AIC(model_fit)
7373

7474
A list of available [Fit measures](@ref) is at the end of this page.
7575

76-
To inspect the parameter estimates, we can update a `ParameterTable` object and call `sem_summary` on it:
76+
To inspect the parameter estimates, we can update a `ParameterTable` object and call `details` on it:
7777

7878
```@example colored; ansicolor = true; output = false
7979
update_estimate!(partable, model_fit)
8080
81-
sem_summary(partable)
81+
details(partable)
8282
```
8383

8484
We can also update the `ParameterTable` object with other information via [`update_partable!`](@ref). For example, if we want to compare hessian-based and bootstrap-based standard errors, we may write
@@ -90,7 +90,7 @@ se_he = se_hessian(model_fit)
9090
update_partable!(partable, :se_hessian, params(model_fit), se_he)
9191
update_partable!(partable, :se_bootstrap, params(model_fit), se_bs)
9292
93-
sem_summary(partable)
93+
details(partable)
9494
```
9595

9696
## Export results
@@ -106,7 +106,7 @@ parameters_df = DataFrame(partable)
106106
# API - model inspection
107107

108108
```@docs
109-
sem_summary
109+
details
110110
update_estimate!
111111
update_partable!
112112
```

docs/src/tutorials/regularization/regularization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ update_estimate!(partable, fit)
148148
149149
update_partable!(partable, :estimate_lasso, params(fit_lasso), solution(fit_lasso))
150150
151-
sem_summary(partable)
151+
details(partable)
152152
```
153153

154154
## Second example - mixed l1 and l0 regularization
@@ -182,5 +182,5 @@ Let's again compare the different results:
182182
```@example reg
183183
update_partable!(partable, :estimate_mixed, params(fit_mixed), solution(fit_mixed))
184184
185-
sem_summary(partable)
185+
details(partable)
186186
```

src/StructuralEquationModels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export AbstractSem,
131131
SemFit,
132132
minimum,
133133
solution,
134-
sem_summary,
134+
details,
135135
objective!,
136136
gradient!,
137137
hessian!,

src/frontend/fit/summary.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function sem_summary(
1+
function details(
22
sem_fit::SemFit;
33
show_fitmeasures = false,
44
color = :light_cyan,
@@ -45,7 +45,7 @@ function sem_summary(
4545
print("\n")
4646
end
4747

48-
function sem_summary(
48+
function details(
4949
partable::ParameterTable;
5050
color = :light_cyan,
5151
secondary_color = :light_yellow,
@@ -250,7 +250,7 @@ function sem_summary(
250250

251251
end
252252

253-
function sem_summary(
253+
function details(
254254
partable::EnsembleParameterTable;
255255
color = :light_cyan,
256256
secondary_color = :light_yellow,
@@ -291,7 +291,7 @@ function sem_summary(
291291
print("\n")
292292
printstyled(rpad(" Group: $k", 78), reverse = true)
293293
print("\n")
294-
sem_summary(
294+
details(
295295
partable.tables[k];
296296
color = color,
297297
secondary_color = secondary_color,
@@ -333,9 +333,9 @@ function Base.findall(fun::Function, partable::ParameterTable)
333333
end
334334

335335
"""
336-
(1) sem_summary(sem_fit::SemFit; show_fitmeasures = false)
336+
(1) details(sem_fit::SemFit; show_fitmeasures = false)
337337
338-
(2) sem_summary(partable::AbstractParameterTable; ...)
338+
(2) details(partable::AbstractParameterTable; ...)
339339
340340
Print information about (1) a fitted SEM or (2) a parameter table to stdout.
341341
@@ -347,4 +347,4 @@ Print information about (1) a fitted SEM or (2) a parameter table to stdout.
347347
- `show_variables = true`
348348
- `show_columns = nothing`: columns names to include in the output e.g.`[:from, :to, :estimate]`)
349349
"""
350-
function sem_summary end
350+
function details end

0 commit comments

Comments
 (0)