plsm2sem: Convert Model for Use in 'sem'

Description Usage Arguments Value See Also Examples

View source: R/plsm2sem.R

Description

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

Usage

1
2
3
4
5
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

1
2
3
4
5
6
data(ECSImobi)
if(require(sem)){
   ECSIsem <- plsm2sem(ECSImobi)
   detach(package:sem)
   ECSIsem
}

semPLS documentation built on May 2, 2019, 9:34 a.m.