Debian Codegraph @

man/glance.lavaan.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/lavaan.R
3 \name{glance.lavaan}
4 \alias{glance.lavaan}
5 \title{Glance at a(n) lavaan object}
6 \usage{
7 \method{glance}{lavaan}(x, ...)
8 }
9 \arguments{
10 \item{x}{A \code{lavaan} object, such as those returned from \code{\link[lavaan:cfa]{lavaan::cfa()}},
11 and \code{\link[lavaan:sem]{lavaan::sem()}}.}
12
13 \item{...}{Additional arguments. Not used. Needed to match generic
14 signature only. \strong{Cautionary note:} Misspelled arguments will be
15 absorbed in \code{...}, where they will be ignored. If the misspelled
16 argument has a default value, the default value will be used.
17 For example, if you pass \code{conf.lvel = 0.9}, all computation will
18 proceed using \code{conf.level = 0.95}. Two exceptions here are:
19 \itemize{
20 \item \code{tidy()} methods will warn when supplied an \code{exponentiate} argument if
21 it will be ignored.
22 \item \code{augment()} methods will warn when supplied a \code{newdata} argument if it
23 will be ignored.
24 }}
25 }
26 \value{
27 A one-row \link[tibble:tibble]{tibble::tibble} with columns:
28
29 \item{chisq}{Model chi squared}
30 \item{npar}{Number of parameters in the model}
31 \item{rmsea}{Root mean square error of approximation}
32 \item{rmsea.conf.high}{95 percent upper bound on RMSEA}
33 \item{srmr}{Standardised root mean residual}
34 \item{agfi}{Adjusted goodness of fit}
35 \item{cfi}{Comparative fit index}
36 \item{tli}{Tucker Lewis index}
37 \item{AIC}{Akaike information criterion}
38 \item{BIC}{Bayesian information criterion}
39 \item{ngroups}{Number of groups in model}
40 \item{nobs}{Number of observations included}
41 \item{norig}{Number of observation in the original dataset}
42 \item{nexcluded}{Number of excluded observations}
43 \item{converged}{Logical - Did the model converge}
44 \item{estimator}{Estimator used}
45 \item{missing_method}{Method for eliminating missing data}
46
47 For further recommendations on reporting SEM and CFA models see
48 Schreiber, J. B. (2017). Update to core reporting practices in
49 structural equation modeling. Research in Social and Administrative
50 Pharmacy, 13(3), 634-643. https://doi.org/10.1016/j.sapharm.2016.06.006
51 }
52 \description{
53 Glance accepts a model object and returns a \code{\link[tibble:tibble]{tibble::tibble()}}
54 with exactly one row of model summaries. The summaries are typically
55 goodness of fit measures, p-values for hypothesis tests on residuals,
56 or model convergence information.
57
58 Glance never returns information from the original call to the modeling
59 function. This includes the name of the modeling function or any
60 arguments passed to the modeling function.
61
62 Glance does not calculate summary measures. Rather, it farms out these
63 computations to appropriate methods and gathers the results together.
64 Sometimes a goodness of fit measure will be undefined. In these cases
65 the measure will be reported as \code{NA}.
66
67 Glance returns the same number of columns regardless of whether the
68 model matrix is rank-deficient or not. If so, entries in columns
69 that no longer have a well-defined value are filled in with an \code{NA}
70 of the appropriate type.
71 }
72 \examples{
73 \dontshow{if (rlang::is_installed("lavaan")) withAutoprint(\{ # examplesIf}
74
75 library(lavaan)
76
77 # fit model
78 cfa.fit <- cfa(
79 "F =~ x1 + x2 + x3 + x4 + x5",
80 data = HolzingerSwineford1939, group = "school"
81 )
82
83 # summarize model fit with tidiers
84 glance(cfa.fit)
85 \dontshow{\}) # examplesIf}
86 }
87 \seealso{
88 \code{\link[=glance]{glance()}}, \code{\link[lavaan:cfa]{lavaan::cfa()}}, \code{\link[lavaan:sem]{lavaan::sem()}},
89 \code{\link[lavaan:fitMeasures]{lavaan::fitmeasures()}}
90
91 Other lavaan tidiers:
92 \code{\link{tidy.lavaan}()}
93 }
94 \concept{lavaan tidiers}