dat2way: Simulated Dataset to Demonstrate Two-way Latent Interaction

Description Usage Format Source Examples

Description

A simulated data set with 2 independent factors and 1 dependent factor where each factor has three indicators

Usage

1

Format

A data.frame with 500 observations of 9 variables.

x1

The first indicator of the first independent factor

x2

The second indicator of the first independent factor

x3

The third indicator of the first independent factor

x4

The first indicator of the second independent factor

x5

The second indicator of the second independent factor

x6

The third indicator of the second independent factor

x7

The first indicator of the dependent factor

x8

The second indicator of the dependent factor

x9

The third indicator of the dependent factor

Source

Data were generated by the mvrnorm function in the MASS package.

Examples

1

Example output

Loading required package: lavaan
This is lavaan 0.6-3
lavaan is BETA software! Please report any bugs.
 
###############################################################################
This is semTools 0.5-1
All users of R (or SEM) are invited to submit functions or ideas for functions.
###############################################################################
             x1         x2          x3         x4          x5          x6
[1,] -1.8187626 -0.8562262 -1.68180435  1.1433047  0.73634431 -1.66626093
[2,] -0.5151810  0.8567330 -0.06406867 -1.4098765  1.65212477  0.50982044
[3,] -1.4966179  1.7452026 -0.18804763  1.0352673 -0.77030873 -1.84342363
[4,] -1.2196720 -1.5443674 -0.49324152 -0.9803422 -0.39348424 -0.20869145
[5,]  1.1821387 -1.3806932  0.11446183 -0.6386459  0.04413679  0.03828171
[6,] -0.9725346 -0.4393652 -1.01947176 -0.1275244 -0.19718816 -0.79168626
             x7         x8         x9
[1,] -0.4793663 -1.6561633 -0.4313809
[2,] -0.9954784  0.1258883  0.8478154
[3,]  2.0252067  1.3671299  2.8677786
[4,] -0.7616253  1.6029655  0.8155289
[5,] -1.4655456  0.5215523  0.6441019
[6,] -1.8503951  0.6594724 -1.2279043

semTools documentation built on Jan. 13, 2021, 8:09 p.m.