Appendix F — Options reference

This appendix is a reference guide to the options of the fitting functions (lavaan(), cfa(), sem(), growth()), organized by theme. It is intended for consultation; the motivation for each option is found in the chapters, and the tables below point there. The authoritative, always-current source is the lavOptions() help page (?lavOptions); this appendix trades some of its completeness for organization and cross-references.

The following points apply to all tables:

F.1 Model specification

These options shape the parameter table (chapter 3): which parameters are added automatically, which are free, and how the latent variables are identified. The auto_* options are set by the cfa()/sem() wrappers and are rarely set directly.

Table F.1: Model-specification options.
Option Default Purpose
meanstructure "default" Add intercepts/means to the model. Resolves to TRUE when the data (or estimator, or missing = "ml") require it.
int_ov_free FALSE Free the intercepts of the observed variables (set by the wrappers).
int_lv_free FALSE Free the means/intercepts of the latent variables.
marker_int_zero FALSE Alternative mean identification: fix the marker intercepts to zero and free the latent means instead.
std_lv FALSE Identify factors by unit variance instead of a marker loading; the first loading is then free.
effect_coding FALSE Effect-coding identification: loadings of a factor sum to the number of indicators and/or intercepts sum to zero ("loadings", "intercepts", or TRUE for both).
auto_fix_first wrapper: TRUE Fix the first loading of each factor to 1 (marker method); ignored when std_lv = TRUE.
bad_marker_crit 0.1 With auto_fix_first, warn when a marker correlates weakly (corrected item–total correlation below this value) with its own indicators; 0 disables the check (see Section 6.1.4).
bad_marker_switch FALSE If the bad_marker_crit check flags a poor marker: only warn (FALSE, the current default), or let the best available indicator set the metric instead (TRUE).
auto_fix_single wrapper: TRUE Fix the residual variance of a single-indicator factor to zero.
auto_var wrapper: TRUE Add (residual) variances for observed and latent variables.
auto_cov_lv_x wrapper: TRUE Add covariances among exogenous latent variables.
auto_cov_y wrapper: TRUE Add residual covariances among endogenous outcome variables.
auto_cov_rv wrapper: TRUE Two-level models: add covariances between the random slopes (rv()) and the other random effects of the between level (Section 16.13.2); not with mimic = "Mplus".
auto_cov_x FALSE Also free the covariances between exogenous latent and exogenous observed variables.
auto_th wrapper: TRUE Add thresholds for ordered observed variables (chapter 14).
auto_delta wrapper: TRUE Add scaling factors (~*~) for ordered variables, and free them where cross-group threshold constraints identify them (Section 14.5.2).
auto_efa wrapper: TRUE Apply the EFA-block constraints for efa("block")* factors (chapter 15).
fixed_x "default" Treat exogenous observed covariates as fixed (their moments become fixed parameters). Resolves to TRUE for ML-type estimation.
conditional_x "default" Model the moments conditional on the exogenous covariates rather than jointly (Section 7.3.4 resolves the interplay with missing data; default TRUE for categorical endogenous variables).
orthogonal FALSE Constrain all covariances among (exogenous) latent variables to zero.
orthogonal_x / orthogonal_y FALSE Same, restricted to the exogenous / endogenous side.
correlation FALSE Fit a correlation structure instead of a covariance structure (default estimator: ML via Delta-augmentation; a character vector selects a partial correlation structure; Section 12.5).
parameterization "default" For ordered data: "Delta" (default) or "Theta" (Section 14.5.2).
composites TRUE Enable the composite (<~) specification (Section 4.4); FALSE restores the legacy formative-factor treatment.
composites_cov "default" Estimate the (co)variances among composite indicators freely ("free") or fix them at sample values ("fixed", single-level default).
ceq_simple FALSE Absorb simple (label-based) equality constraints into a reduced parameter vector instead of explicit constraint rows (Section 7.7.7).
std_ov FALSE Standardize all observed variables before the analysis.
parser "open" Model-syntax parser; "old" restores the pre-0.7 parser.

F.2 Data, groups, and missing data

Table F.2: Data-related options.
Option Default Purpose
group NULL Name of the grouping variable for multiple-group analysis.
group_label NULL Order/selection of the group levels.
group_equal "" Blocks of parameters equated across groups: "loadings", "composite.weights", "intercepts", "thresholds", "residuals", "residual.covariances", "lv.variances", "lv.covariances", "regressions", "means", or "all" for all of them (Section 11.2.10, Section 14.6.2).
group_partial "" Parameters exempted from group_equal (partial invariance), e.g. c("x3 ~ 1").
group_w_free FALSE Treat the group frequencies as free parameters (Poisson model).
cluster NULL Name of the cluster variable: enables two-level models (with level: syntax, chapter 16) or cluster-robust corrections (without).
level_label NULL Labels identifying the levels in level: syntax.
panel NULL Long panel data: c(id = "pid", time = "wave") (optionally sep = "_") reshapes the data to the wide format before the analysis (Section 5.1.5); with a two-level model the data stay long and lagged variables (y[t-1]) become available (Section 16.14).
ordered NULL Names of the ordered (ordinal) variables; TRUE declares all of them (Section 14.3).
missing "default" Missing-data treatment: "listwise" (default for complete-case estimators), "ml" (FIML, Section 7.3.4), "ml.x" (FIML including exogenous x), "two.stage", "robust.two.stage", "pairwise", "available.cases", "doubly.robust" (the last three for categorical/PML settings, Section 14.8).
sampling_weights NULL Name of the sampling-weights variable; in a two-level model, the weights of the level-1 units within their cluster (Section 16.10).
sampling_weights_cluster NULL Two-level models: name of the variable with the sampling weights of the clusters.
sampling_weights_normalization "group" Normalize weights to sum to the sample size per "group", "total", or "none"; in a two-level model, applied to the cluster weights.
sampling_weights_scaling "cluster" Two-level models: rescale the level-1 weights within each cluster so that they sum to the cluster size ("cluster") or to the effective cluster size ("ecluster"), or not at all ("none").
sampling_weights_type "design" Interpret the weights as design or frequency weights.
sample_cov_rescale "default" Rescale a user-provided sample_cov by (N-1)/N; resolves to TRUE for normal-theory ML.
sample_icov TRUE Also compute the inverse of the sample covariance matrix.
ridge / ridge_constant FALSE / 1e-5 Add a small ridge constant to the diagonal of the sample covariance matrix (near-singular data).
rescale_data "auto" Internally rescale badly scaled variables (very heterogeneous or extreme standard deviations) and map the solution back to the original metric exactly; TRUE forces the rescaling, FALSE/"none" disables it (Section 7.11).

F.3 Estimation and optimization

The estimators themselves are the subject of chapter 7; bounds and starting values are covered in chapter 6.

Table F.3: Estimation and optimization options.
Option Default Purpose
estimator "default" "ML" (default for continuous data), robust variants ("MLM", "MLMV", "MLMVS", "MLF", "MLR"), least squares ("GLS", "WLS", "DWLS", "ULS" and their M/MV aliases, default "WLSMV" for ordered data), "DLS", "PML", "MML", "catML", non-iterative ("FABIN2", "FABIN3", "MGM", "JS"/"JSA", "Bentler1982"), "IV"/"MIIV", and "none" (Section 7.2; aliases resolve to a base estimator plus se and test settings, Section 14.5.4).
estimator_args list() Extra arguments for specific estimators (e.g., DLS weights, IV options such as iv_method ("2SLS", "LIML", "Fuller"), MGM/JS options such as mgm_gamma, crossload_detect, or the second-stage algorithm).
likelihood "default" "normal" (N-based) or "wishart" (N-1-based) ML variants (Section 7.3.3).
link "default" "probit" (default) or "logit"; the latter only for estimator = "MML".
representation "default" Internal matrix representation: "LISREL" (default) or "RAM" (chapter 4).
do_fit TRUE FALSE runs the whole pipeline except the optimization; the returned object holds the model at its starting values.
backend "lavaan" Estimation backend: the name of a backend registered with lavBackendRegister() (or a function) estimates the model lavaan prepared, and the results are imported into the fitted object (Section 2.9); required for data-defined (:~) parameters.
backend_args list() Settings passed on to the backend.
start "default" Starting values: "default", "simple", or a fitted object / parameter table supplying them (chapter 6; see also Section 19.12.1).
rstarts 0 Number of additional random-starting-value runs; the best solution is kept.
bounds "none" Parameter bounds during optimization: "standard" (recommended), "wide", "wide.zerovar", "pos.var", "pos.ov.var", "pos.lv.var", "user" (Section 6.2.2).
optim_bounds list() Fine-grained control over the automatic bounds (Section 6.2.2).
optim_method "default" Optimizer: "nlminb" (default), "BFGS", "L-BFGS-B", "GN" (Gauss–Newton, default for DLS and some WLS settings), "em" (multilevel), "noniter", "none" (chapter 7).
optim_gradient "analytic" Analytic or numerical ("numerical", "simple") gradients.
optim_attempts 4 Number of optimization attempts, with increasingly relaxed settings, before the optimization is declared to have failed.
optim_dx_tol 1e-3 Tolerance for the scaled-gradient convergence check (Section 7.11).
optim_force_converged FALSE Accept the final iterate as converged, without any convergence check.
optim_fix_saturated TRUE Multilevel: temporarily fix the parameters of saturated blocks at their \mathsf{H}_1 estimates during optimization.
pd_lv "default" Keep the covariance matrix of the latent variables positive definite, by optimizing over its Cholesky factor: TRUE, FALSE, or "auto" (apply wherever possible). The default is resolved to "auto" for models with random slopes, and to FALSE otherwise (Section 7.11.4).
optim_var_transform "none" Optimize sqrt-transformed variances to enforce positivity.
optim_parscale "none" Parameter rescaling during optimization; "standardized" optimizes in an (approximately) standardized parameter metric (each free parameter multiplied by the factor that maps it to its standardized metric; a latent variable takes the scale of its marker indicator). Safe with any type of constraint, since the constraints are imposed on the original parameters. The automatic retries (optim_attempts) use it when the first attempt fails. For badly scaled data, prefer rescale_data (Table F.2).
optim_partrace FALSE Record the full parameter trace of the optimizer.
control list() Passed through to the underlying optimizer (nlminb(), optim()).
em_args (list) EM controls for random-slopes/multilevel models: max_iter (10000), fx_tol (1e-8), dx_tol (1e-4), acceleration ("squarem", "qn", "none"), nlminb_handoff (complete the EM run with a quasi-Newton run), … (chapter 16).
em_h1_args (list) EM controls for the unrestricted (\mathsf{H}_1) two-level model with missing data: max_iter, tol, min_variance, non_pd_action, …
gn_args (list) Gauss–Newton controls: max_iter (200), tol_x (1e-5), tol_g (1e-6).
integration_ngh 21 Number of Gauss–Hermite quadrature points (estimator = "MML", random slopes).
check_start TRUE Check the starting values for plausibility.
check_gradient TRUE Warn when the first-order conditions are violated at the solution (Section 7.11).
check_post TRUE Post-estimation admissibility checks (negative variances, non-PD matrices; Section 7.11.3).
check_vcov TRUE Warn when the observed information matrix is not positive definite.
check_lv_names TRUE Stop when latent-variable names clash with observed-variable names.

F.4 Standard errors, tests, and the bootstrap

Chapter 8 develops the theory behind all of these; the information matrix options are discussed in Section 8.2.1 and the sections that follow it, and \boldsymbol{\Gamma} estimation in Section 8.3.

Table F.4: Standard error, test, and bootstrap options.
Option Default Purpose
se "default" Standard errors: "standard", "robust.huber.white" (MLR sandwich), "robust.sem" (MLM-style), "robust.cluster", "robust.cluster.sem", "two.stage", "robust.two.stage", "first.order", "bootstrap", "none" (Section 8.4).
test "default" Test statistic(s): "standard", "satorra.bentler", "scaled.shifted", "mean.var.adjusted", "yuan.bentler(.mplus)", "browne.residual.(adf|nt)(.model)", "RLS", corrected variants, "bootstrap" (Bollen–Stine), "none"; several may be requested at once. "default" for estimator = "ML" resolves to c("standard", "browne.residual.nt.model") (Section 8.5).
standard_test / scaled_test "standard" Which statistic plays the role of the base / scaled test when both are computed (Section 8.5.9).
information ("default", "default") Expected, observed, or first-order information for (1) standard errors and (2) test statistics (Section 8.2.1).
observed_information ("hessian", "default") How the observed information is computed: analytic/numerical "hessian" or "h1" (via the \mathsf{H}_1 model).
h1_information ("structured", "structured") Evaluate the \mathsf{H}_1 part of the information at the "structured" (model-implied) or "unstructured" (sample) moments.
information_meat / h1_information_meat "default" Same choices for the meat of sandwich estimators.
information_bread "default" Information type ("expected" or "observed") for the bread of a sandwich estimator (se = "robust.sem"/"robust.huber.white"), independent of the meat; "default" reuses information[1], except for categorical DWLS/ULS with se = "robust.sem" (single-level or two-level), where it resolves to "observed" (Section 14.5.6), and for the structural part of a sam() model with se = "local" (Section 18.7.1).
information_meat_hc "HC0" Small-sample correction of the meat of a sandwich estimator (se = "robust.sem"/"robust.huber.white", and the local and two-step Huber–White standard errors of sam()): "HC0" (none), "HC1" (the factor N/(N - T)), "HC2" and "HC3" (leverage adjustment of the regression coefficients; Section 8.4.9). Single-level data only.
omega_* (4 options) "default" Overrides for the \boldsymbol{\Omega} (meat) construction in scaled tests; rarely needed.
h1_missing_method "em" Algorithm for the unrestricted model under missing = "ml" in two-level settings ("em" or "fiml").
gamma_n_minus_one FALSE Divide \boldsymbol{\Gamma} by N-1 instead of N.
gamma_unbiased FALSE Use the unbiased estimator of \boldsymbol{\Gamma} (Section 8.3).
se_def "default" Standard errors for := parameters: "delta" (default) or "monte.carlo" (Section 8.4.14).
se_delta_second_order FALSE Second-order delta method for defined and standardized parameters.
monte_carlo list(R = 20000, seed = NULL) Settings for the Monte Carlo method (Section 8.4.14, Section 8.4.15).
bootstrap 1000 Number of bootstrap draws for se = "bootstrap" / test = "bootstrap" (Section 8.4.12). A list is accepted too (R for the number of draws, plus the elements of bootstrap_args and the resampling settings); the option itself is always stored as a single number.
bootstrap_args list(method = "refit", guard = TRUE, guard_tol = 0.25) Further bootstrap settings. method: "refit", or the approximations "ij" and "hoij2", the latter with a guard that refits the draws that are not accurate enough (Section 8.4.13).
parallel / ncpus / cl "no" / 2 / NULL Parallelization of the bootstrap ("multicore", "snow").
iseed NULL Seed for reproducible bootstrap/simulation draws (Section 19.10).

F.5 Categorical data

Chapter 14 provides the background for this small table; ordered, parameterization, and missing (in its categorical variants) appear in the earlier tables.

Table F.5: Categorical-data options.
Option Default Purpose
zero_add c(0.5, 0.0) Values added to empty cells of the bivariate frequency tables when computing polychoric correlations (first element: 2×2 tables; second: larger tables).
zero_keep_margins "default" (TRUE) When a value is added to an empty cell of a 2×2 table, adjust the other cells so the margins are preserved.
zero_cell_warn FALSE Warn about empty bivariate cells.
allow_empty_cell FALSE Tolerate variables with fewer observed categories than declared (used by blavaan).
cat_wls_w TRUE Compute the weight-matrix ingredients during the categorical sample-statistics step (internal; disable only to save memory when they are not needed).

F.6 Rotation (EFA/ESEM)

Chapter 15 explains the criteria and the algorithms; these options apply when the model contains efa() blocks (or through the efa() user-facing function).

Table F.6: Rotation options.
Option Default Purpose
rotation "geomin" Rotation criterion: "geomin", "varimax", "quartimin", "oblimin", "promax", "cf", "target", "pst", "bi.geomin", "bi.quartimin", … (Section 15.4). To set rotation options, pass a list whose first element is the criterion and whose named elements are the options (rotation = list("geomin", geomin_epsilon = 0.01, rstarts = 100); Section 15.5.6), including orthogonal (FALSE), geomin_epsilon (0.001), simplimax_k (0, meaning P(M-1)), target / target_mask (target rotation; a named list of targets rotates each EFA block separately), rstarts (30), algorithm ("gpa" or "pairwise"), pairwise_accelerate (TRUE), reflect (TRUE), order_lv_by ("index"), std_ov (TRUE), row_weights, mg_agreement (the multiple-group agreement rotation, TRUE or a preset "mgfr"/"alignment", with its mg_agreement_* settings; Section 15.9.3), and convergence controls (gpa_tol, max_iter).
rotation_se "bordered" Standard errors for the rotated solution: "bordered" (default) or "delta".
alignment "none" Alignment of a multiple-group confirmatory model: "fixed" (factor means zero in the reference group) or "free" (Section 15.9.5). Requires the configural model (std_lv = TRUE, mean structure). Settings follow the type in a list, as for rotation: alignment = list("fixed", method = "relative.alignment"), with method ("loading.alignment", "relative.alignment", "procrustes"), epsilon (0.01), group_weights ("sqrt.nobs"), identification ("reference"), std_ov (FALSE), rstarts (30), reference_group (1 or "auto").

F.7 What is computed and stored

These switches do not change the estimates; they control which by-products are computed and kept. These are the options used in Section 19.9 to speed up simulation studies and other high-volume loops.

Table F.7: Output-control options.
Option Default Purpose
h1 TRUE Fit the unrestricted (\mathsf{H}_1) model; needed for the chi-square test and many fit measures.
baseline TRUE Fit the baseline (independence) model; needed for CFI/TLI (Section 10.2.1).
baseline_type "independence" Structure of the automatically generated baseline model; "nested" (experimental) derives it from the user’s parameter table so that it is nested by construction. A fully custom baseline is passed to fitMeasures() via baseline_model instead (Section 10.2.1).
baseline_conditional_x_free_slopes TRUE Free the slopes of the exogenous covariates in the baseline model when conditional_x = TRUE.
baseline_fixed_x_free_cov TRUE Retain the covariances among the exogenous covariates in the baseline model (free if fixed_x = FALSE, fixed at their sample values if fixed_x = TRUE; same baseline chi-square either way) instead of constraining them to zero. FALSE under mimic = "EQS" or "LISREL".
loglik TRUE Compute the log-likelihood (and AIC/BIC) when applicable.
implied TRUE Store the model-implied moments.
samplestats TRUE Compute the sample statistics (disable only in special cases).
store_vcov "default" Store the full variance–covariance matrix of the parameters in the fitted object.
fit_by_level TRUE For two-level models: compute level-specific fit measures (Section 10.7).

F.8 Compatibility switches

Table F.8: Compatibility options.
Option Default Purpose
mimic "lavaan" Emulate the conventions of another program: "Mplus" or "EQS" adjust a set of the switches below (and a few internal details) at once.
rmsea_scaled_mplus "default" Use Mplus’s convention for the scaled RMSEA (resolves to TRUE under mimic = "Mplus").
information_expected_mplus, gamma_vcov_mplus, gamma_wls_mplus, gls_v11_mplus "default" Further Mplus-compatibility details for information matrices and \boldsymbol{\Gamma}.
ug2_old_approach FALSE Reproduce the pre-0.6-13 computation of the scaled-test ingredients.
std_ov_interaction "component" How product terms with an observed component (x1:x2, f1:x1) are standardized: like latent product terms (scaled by the product of the component SDs, main effects as simple slopes at the means), or as variables in their own right ("product", the pre-0.7-3 behavior; Section 12.1.6).

F.9 Other arguments

Some settings accepted by the fitting functions are arguments rather than options in the lavOptions() sense, most notably the data interface (data=, sample_cov=, sample_mean=, sample_nobs=, sample_th=, nacov=, wls_v=), the constraints= argument, the aux= argument for auxiliary variables under missing data (Section 7.3.5), and the slot_* recycling arguments of Section 19.12.1. They are documented on the ?lavaan help page.

Two practices resolve most questions about options. First, lavInspect(fit, "options") returns the values that were actually used, after all "default" values have been resolved. It is a more reliable source than the call. Second, the complete set of options can be enumerated:

length(lavOptions())
[1] 140

and every one of them has an entry in ?lavOptions. When an analysis gives unexpected results after an option change, comparing lavInspect(fit, "options") for the two fits with setdiff() locates the responsible option faster than inspecting the output.