Learn R Programming

semPLS (version 1.0-6)

plsm2sem: Convert Model for Use in sem

Description

Converts a plsm object to an object of class mod for usage of sem method within sem package.

Usage

plsm2sem(model, ...)

## S3 method for class 'plsm': plsm2sem(model, file=stdout(), fixedVarMV=TRUE, fixedVarLV=TRUE, fixedLoad=character(), ...)

Arguments

model
An object of class splsm as returned by the method read.splsm.
...
Arguments to pass down.
file
A character naming the file to write to. If no file argument is specified, splsm2sem writes to stdout.
fixedVarMV
A logical indicating whether the variances of the MVs should be fixed to one. The default is TRUE.
fixedVarLV
A logical indicating whether the variances of the LVs should be fixed to one. The default is TRUE.
fixedLoad
A character vector naming the MVs, for which the outer loading should be fixed to one.

Value

  • If the sem package is available, an object of class mod (see specifyModel) is returned, else a text representation of recticular action model (RAM) is written. Note, specifyModel was specify.model in sem (< 2.0.0).

See Also

specifyModel

Examples

Run this code
data(ECSImobi)
if(require(sem)){
   ECSIsem <- plsm2sem(ECSImobi)
   ECSIsem
}

Run the code above in your browser using DataLab