- y
Dependent variable (character string). Can be the name of a manifest variable or of a latent variable.
- x
Treatment variable (character string) treated as categorical variable.
- k
Vector of manifest variables treated as categorical covariates (character vector).
- z
Vector of continuous covariates (character vector). Names of both manifest and latent variables are allowed.
- data
A data frame.
- method
Can be one of c("sem","lm") and indicates which function is used to fit the model.
- control
Value of x that is used as control group. If "default", takes the first entry of as.factor(x).
- measurement
Measurement model. The measurement model is lavaan syntax (character string), that will be appended before the automatically generated lavaan input. It can be used to specify a measurement for a latent outcome variable and/or latent covariates. See also the example and generateMeasurementModel.
- fixed.cell
logical. If FALSE, the group sizes are treated as stochastic rather than fixed. The default setting for method="sem" is FALSE and the default setting for method="lm" is TRUE.
- fixed.z
logical. If FALSE, the continuous covariates are treated as stochastic rather than fixed. The default setting for method="sem" is FALSE and the default setting for method="lm" is TRUE.
- missing
Missing data handling. Will be passed on to sem or ignored for method="lm".
- se
Type of standard errors. Will be
passed on to sem or ignored for method="lm".
- syntax.only
logical. If TRUE, only syntax is returned and the model
will not be estimated.
- interactions
character. Indicates the type of interaction. Can be one of "all" (all interactions), "2-way" (only two-way interactions), "X:K,X:Z" (only X:K and X:Z interactions), "X:K" (only X:K interactions), "X:Z" (only X:Z interactions), "none" (no treatment by covariate interactions, but potentially interactions between categorical and continuous covariates), or "no" (no interactions at all).
- homoscedasticity
logical. If TRUE, residual variances of the dependent variable are assumed to be homogeneous across cells. The default setting for method="sem" is FALSE and the default setting for method="lm" is TRUE.
- test.stat
character. Can be one of c("default","Chisq","Ftest") and indicates the statistic used for the hypothesis tests. The tests are either based on the large sample Chi-Squared statistic (Wald tests) or the finite sample F statistic with approximate F distribution. The default setting for method="sem" is "Chisq" and the default setting for method="lm" is "Ftest".
- propscore
Vector of covariates (character vector) that will be used to compute (multiple) propensity scores based on a multinomial regression without interactions. Alternatively, the user can specify a formula with the treatment variable as dependent variable for more control over the propensity score model.
- ids
Formula specifying cluster ID variable. Because lavaan.survey that used this argument is no longer on CRAN, the cluster argument in sem will now be used.
- weights
Formula to specify sampling weights. Because lavaan.survey that used this argument is no longer on CRAN, the sampling.weights argument in sem will now be used. Note: Only use weights if you know what you are doing. For example, some conditional treatment effects may require different weights than average effects.
- add
Character string that will be pasted at the end of the generated lavaan syntax. Can for example be used to add additional (in-) equality constraints or to compute user-defined conditional effects.
- ...
Further arguments passed to sem.