- fit
The fit object, to be
passed to manymome::cond_indirect_effects().
- x
The name of the x-variable,
the predictor.
- m
A character vector of the
name(s) of mediator(s). The path
moves from the first mediator in the
vector to the last mediator in the
vector. Can be NULL and the path
is a direct path without mediator.
- y
The name of the y-variable,
the outcome variable.
- wlevels
The output of
manymome::merge_mod_levels(), or
the moderator(s) to be passed to
manymome::mod_levels_list().
If all the moderators can be
represented by one variable, that is,
each moderator is (a) a numeric
variable, (b) a dichotomous
categorical variable, or (c) a
factor or string variable used in
stats::lm() in fit, then it is a
vector of the names of the moderators
as appeared in the data frame. If at
least one of the moderators is a
categorical variable represented by
more than one variable, such as
user-created dummy variables used in
lavaan::sem(), then it must be a
list of the names of the moderators,
with such moderators represented by
a vector of names. For example:
list("w1", c("gpgp2", "gpgp3"),
the first moderator w1 and the
second moderator a three-category
variable represented by gpgp2 and
gpgp3. See the help page of
manymome::cond_indirect_effects()
for further details.
- mc_ci
Logical. If TRUE, the
default, Monte Carlo confidence
intervals will be formed. This argument
and boot_ci cannot be both TRUE.
- mc_out
The pre-generated
Monte Carlo estimates generated by
manymome::do_mc, stored in
a power4test object. Users should
not set this argument and should let
power4test() to set it automatically.
- boot_ci
Logical. If TRUE,
the default, nonparametric bootstrap
confidence intervals will be formed.
This argument
and mc_ci cannot be both TRUE.
- boot_out
The pre-generated
bootstrap estimates generated by
manymome::do_boot, stored in
a power4test object. Users should
not set this argument and should let
power4test() to set it automatically.
- check_post_check
Logical. If
TRUE, the default, and the model
is fitted by lavaan, the test
will be conducted only if the model
passes the post.check conducted
by lavaan::lavInspect() (with
what = "post.check").
- ...
Additional arguments to
be passed to manymome::cond_indirect_effects().
- fit_name
The name of the
model fit object to be extracted.
Default is "fit". Used only when
more than one model is fitted in
each replication. This should be
the name of the model on which the
test is to be conducted.
- get_map_names
Logical. Used
by power4test() to determine how
to extract stored information and
assign them to this function. Users
should not use this argument.
- get_test_name
Logical. Used
by power4test() to get the default
name of this test. Users should not
use this argument.