-
Notifications
You must be signed in to change notification settings - Fork 0
/
data3.R
44 lines (44 loc) · 877 Bytes
/
data3.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#' @title Dataset (SEM, Three Factors, Nine Variables, Mediation, Skewed)
#'
#' @description Generated from a three-factor model with nine variables, n = 150,
#' with some observed variables positively skewed.
#'
#'
#' @format A data frame with 150 rows and nine variables:
#' \describe{
#' \item{x1}{x1}
#' \item{x2}{x2}
#' \item{x3}{x3}
#' \item{x4}{x4}
#' \item{x5}{x5}
#' \item{x6}{x6}
#' \item{x7}{x7}
#' \item{x8}{x8}
#' \item{x9}{x9}
#' }
#'
#' @details
#' This model is used for examples like this one:
#'
#'
#' ```
#' mod <-
#' "
#' fx =~ x1 + x2 + x3
#' fm =~ x4 + x5 + x6
#' fy =~ x7 + x8 + x9
#' fm ~ a*fx
#' fy ~ b*fm + cp*fx
#' ab := a*b
#' "
#' fit <- lavaan::sem(mod, mediation_latent)
#' ```
#'
#' @examples
#'
#' print(head(mediation_latent_skewed), digits = 3)
#' nrow(mediation_latent_skewed)
#'
#'
#'
"mediation_latent_skewed"