Learn R Programming

semPLS (version 0.8-7)

plsm: Specification of Path Model

Description

Creates the specification of a path model used by sempls. The structural and the measurement must be specified in .csv files. The paths must be entered in the form of a from-to matrix. The variable in the first column represents the source and the second column represents the target of each path.

Usage

plsm(data, strucmod=NULL, measuremod=NULL, order=c("generic",
  "alphabetical"))

exogen(model) endogen(model) reflective(model) formative(model) indicators(model, LV) predecessors(model)

mvplot(model, ...) ## S3 method for class 'plsm': mvplot(model, data, ask=TRUE, \ldots)

mvpairs(model, ...) ## S3 method for class 'plsm': mvpairs(model, data, ask=TRUE, \ldots)

Arguments

data
A data.frame intendend to use for the fitting method, sempls
strucmod
A from-to-matrix representing the structural model. If NULL the path to an .csv file representing the structural model can be entered interactively.
measuremod
A from-to-matrix representing the measurement models. If NULL the path to an .csv file representing the the measurement models can be entered interactively.
order
A character describing how to order the latent variables (LVs). If
  • "generic"the LVs will be ordered according to their appearance in the causal chain of the structural model (default).
  • "alphab
model
An object of class plsm.
LV
A character value naming a latent variable contained in the model
ask
See ?par
...
Arguments to pass down to other methods, e.g. par

Value

  • The object returned is of class plsm with the elements:
  • latentA character vector naming the latent variables.
  • manifestA character vector naming the manifest variables.
  • strucmodContains only the subset of path representing the structural model.
  • measuremodContains only the subset of path representing the measurement model.
  • DThe adjacency matrix $\bm{D}$ for the structural model.
  • MThe adjacency matrix $\bm{M}$ for the measurement model.
  • blocksA list naming the MVs belonging to each LV's block and telling their measurement mode.
  • exogen returns the exogenous latent variables contained in a path model.

    endogen returns the endogenous latent variables contained in a path model.

    reflective returns the reflectively measured latent variables contained in a path model.

    formative returns the formatively measured latent variables contained in a path model.

    indicators returns the index or observed variables related to the given latent variable.

    predecessors returns a list with the names of predecessors for each latent variable.

See Also

sempls, read.splsm,

Examples

Run this code
# getting the path to the .csv file representing the inner Model
ptf_Struc <- system.file("ECSIstrucmod.csv", package="semPLS")

# getting the path to the .csv file representing the outer Models
ptf_Meas <- system.file("ECSImeasuremod.csv", package="semPLS")

sm <- as.matrix(read.csv(ptf_Struc))
mm <- as.matrix(read.csv(ptf_Meas))
data(mobi)

ECSI <- plsm(data=mobi, strucmod=sm, measuremod=mm)
ECSI

### Interactive mode
ECSI <- plsm(data=mobi)
ECSI

exogen(ECSI)
endogen(ECSI)
reflective(ECSI)
formative(ECSI)
indicators(ECSI, "Image")
predecessors(ECSI)

Run the code above in your browser using DataLab