Description Usage Arguments Details Value Note Author(s) References Examples
wrapper function for creating indirect effects from direct effects and function writes indirect effects to file
1 | AddOnAllInd(FileName, IndStatements, Directry = getwd())
|
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 |
Directry |
the path where all of the .inp and .out files are located |
No Details required.
no value returned directly instead an extra .inp file is written and run with all IND effects
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.
William Terry
No references
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.