R/data_4.R

#' @title Sample Dataset: A Path Model With A Moderator
#'
#' @description For testing the handling of warnings
#' in [stdmod_lavaan()]. Generated from the following
#' model. `dv` has about 88% missing. A warning on missing
#' data will be raised in some bootstrap samples.
#'
#'```
#'mod <-
#'"
#'med ~ iv + mod + iv:mod + cov1
#'dv ~ med + cov2
#'"
#'```
#'
#' @format A data frame with 500 rows and 6 variables:
#' \describe{
#'   \item{dv}{Dependent variable, continuous}
#'   \item{iv}{Independent variable, continuous}
#'   \item{med}{Mediator, continuous}
#'   \item{mod}{Moderator, continuous}
#'   \item{cov1}{Covariate, continuous}
#'   \item{cov2}{Covariate, continuous}
#' }
#'
"test_mod3_miss"

Try the stdmod package in your browser

Any scripts or data that you put into this service are public.

stdmod documentation built on Sept. 30, 2024, 9:42 a.m.