Description Usage Arguments Details Value References Examples
View source: R/matrixpls.plspm.R
matrixpls.plspm
mimics plspm
function of the plspm
package.
The arguments and their default values and the output of the function are identical with plspm
function,
but internally the function uses matrixpls estimation.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Data |
matrix or data frame containing the manifest variables. |
path_matrix |
A square (lower triangular) boolean matrix representing the inner model (i.e. the path relationships between latent variables). |
blocks |
list of vectors with column indices or column names
from |
modes |
character vector indicating the type of measurement for each
block. Possible values are: |
scheme |
string indicating the type of inner weighting
scheme. Possible values are |
scaled |
whether manifest variables should be standardized.
When ( |
tol |
decimal value indicating the tolerance criterion for the
iterations ( |
maxiter |
integer indicating the maximum number of iterations
( |
boot.val |
whether bootstrap validation should be performed.
( |
br |
number bootstrap resamples. Used only
when |
dataset |
whether the data matrix used in the computations should be
retrieved ( |
The function matrixpls.plspm
calculates indicator weights and estimates a model
identically to the plspm
function. In contrast to the matrixpls
function
that provides only weights and parameter estimates, this function also reports multiple post-estimation
statistics. Because of this matrixpls.plspm
is substantially less efficient than the matrixpls
function.
The argument path_matrix
is a matrix of zeros and ones that indicates
the structural relationships between composites. This must be a lower
triangular matrix. path_matrix
will contain a 1 when column j
affects row i
, 0 otherwise.
An object of class "plspm"
.
outer_model |
Results of the outer model. Includes: outer weights, standardized loadings, communalities, and redundancies |
inner_model |
Results of the inner (structural) model. Includes: path coeffs and R-squared for each endogenous latent variable |
scores |
Matrix of latent variables used to estimate the inner
model. If |
path_coefs |
Matrix of path coefficients
(this matrix has a similar form as |
crossloadings |
Correlations between the latent variables and the manifest variables (also called crossloadings) |
inner_summary |
Summarized results of the inner model. Includes: type of LV, type of measurement, number of indicators, R-squared, average communality, average redundancy, and average variance extracted |
effects |
Path effects of the structural relationships. Includes: direct, indirect, and total effects |
unidim |
Results for checking the unidimensionality of blocks (These results are only meaningful for reflective blocks) |
gof |
Goodness-of-Fit index |
data |
Data matrix containing the manifest variables used in the
model. Only available when |
boot |
List of bootstrapping results; only available
when argument |
Sanchez, G. (2013). PLS Path Modeling with R. Retrieved from http://www.gastonsanchez.com/PLS Path Modeling with R.pdf #'
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 | cores <- getOption("mc.cores")
options(mc.cores=2)
# Run the example from plspm package
# load dataset satisfaction
data(satisfaction)
# inner model matrix
IMAG = c(0,0,0,0,0,0)
EXPE = c(1,0,0,0,0,0)
QUAL = c(0,1,0,0,0,0)
VAL = c(0,1,1,0,0,0)
SAT = c(1,1,1,1,0,0)
LOY = c(1,0,0,0,1,0)
sat_inner = rbind(IMAG, EXPE, QUAL, VAL, SAT, LOY)
# outer model list
sat_outer = list(1:5, 6:10, 11:15, 16:19, 20:23, 24:27)
# vector of modes (reflective indicators)
sat_mod = rep("A", 6)
# apply matrixpls
matrixpls.res <- matrixpls.plspm(satisfaction, sat_inner, sat_outer, sat_mod,
scaled=FALSE, boot.val=FALSE)
print(summary(matrixpls.res))
options(mc.cores=cores)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.