Indirect Effect Writer

Share:

Description

wrapper function for creating indirect effects from direct effects and function writes indirect effects to file

Usage

1
AddOnAllInd(FileName, IndStatements, Directry = getwd())

Arguments

FileName

name without path of mplus .inp and .out files to read and write which is the base filename such as "New"

IndStatements

the indirect statements to write created by AddOnINDStatements

Directry

the path where all of the .inp and .out files are located

Details

No Details required.

Value

no value returned directly instead an extra .inp file is written and run with all IND effects

Note

This function is a helper function for Initialize indirectly through WriteInitialInpFile. Not used as a helper function is is useful only when PasteIND=0 options is utilized by Initialize due to having a very large number of variables, and then after backwards selection is performed, the user desires to add back to the model any possible indirect effects not in the model but possible with the final model.

Author(s)

William Terry

References

No references

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

InitD=Simulate(MissingYN=0,exampleNum=3)
xxx=Initialize(InitD,NumImpute=0,WhichCat=c(1,1,1,1,1,0,1,0),PasteIND=0)
ggg=AllBackwardSelect(xxx[[1]])
zzz=AllSummary(xxx[[1]])[[2]]
qqq=AddOnAllInd(xxx[[1]],zzz)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.