A simulated dataset.

Examples


tpb <- ' 
# Outer Model (Based on Hagger et al., 2007)
  ATT =~ att1 + att2 + att3 + att4 + att5
  SN =~ sn1 + sn2
  PBC =~ pbc1 + pbc2 + pbc3
  INT =~ int1 + int2 + int3
  BEH =~ b1 + b2

# Inner Model (Based on Steinmetz et al., 2011)
  INT ~ ATT + SN + PBC
  BEH ~ INT + PBC 
'

fit <- pls(tpb, TPB_Ordered)
summary(fit)
#> plssem (0.1.0) ended normally after 4 iterations
#> 
#>   Estimator                                    OrdPLSc
#>   Link                                          PROBIT
#>                                                       
#>   Number of observations                          2000
#>   Number of iterations                               4
#>   Number of latent variables                         5
#>   Number of observed variables                      15
#> 
#> R-squared (indicators):
#>   att1                                           0.862
#>   att2                                           0.777
#>   att3                                           0.825
#>   att4                                           0.743
#>   att5                                           0.867
#>   sn1                                            0.805
#>   sn2                                            0.886
#>   pbc1                                           0.863
#>   pbc2                                           0.865
#>   pbc3                                           0.781
#>   int1                                           0.815
#>   int2                                           0.821
#>   int3                                           0.754
#>   b1                                             0.781
#>   b2                                             0.773
#> 
#> R-squared (latents):
#>   INT                                            0.368
#>   BEH                                            0.198
#> 
#> Latent Variables:
#>                  Estimate  Std.Error  z.value  P(>|z|)
#>   ATT =~        
#>     att1            0.928                             
#>     att2            0.882                             
#>     att3            0.908                             
#>     att4            0.862                             
#>     att5            0.931                             
#>   SN =~         
#>     sn1             0.897                             
#>     sn2             0.941                             
#>   PBC =~        
#>     pbc1            0.929                             
#>     pbc2            0.930                             
#>     pbc3            0.884                             
#>   INT =~        
#>     int1            0.903                             
#>     int2            0.906                             
#>     int3            0.868                             
#>   BEH =~        
#>     b1              0.884                             
#>     b2              0.879                             
#> 
#> Regressions:
#>                  Estimate  Std.Error  z.value  P(>|z|)
#>   INT ~         
#>     ATT             0.239                             
#>     SN              0.209                             
#>     PBC             0.239                             
#>   BEH ~         
#>     PBC             0.286                             
#>     INT             0.219                             
#> 
#> Covariances:
#>                  Estimate  Std.Error  z.value  P(>|z|)
#>   ATT ~~        
#>     SN              0.623                             
#>     PBC             0.690                             
#>   SN ~~         
#>     PBC             0.690                             
#> 
#> Variances:
#>                  Estimate  Std.Error  z.value  P(>|z|)
#>     ATT             1.000                             
#>     SN              1.000                             
#>     PBC             1.000                             
#>    .INT             0.632                             
#>    .BEH             0.802                             
#>    .att1            0.138                             
#>    .att2            0.223                             
#>    .att3            0.175                             
#>    .att4            0.257                             
#>    .att5            0.133                             
#>    .sn1             0.195                             
#>    .sn2             0.114                             
#>    .pbc1            0.137                             
#>    .pbc2            0.135                             
#>    .pbc3            0.219                             
#>    .int1            0.185                             
#>    .int2            0.179                             
#>    .int3            0.246                             
#>    .b1              0.219                             
#>    .b2              0.227                             
#>