read .out M Plus files to return total, indirect, and direct effect p-values and names of effects

1 | ```
ParseTotalEffects(OutFile, FileName, Directry)
``` |

`OutFile` |
a read, scanned string of the .out M Plus file, see example |

`FileName` |
the name of the folder where the .out files are stored for backward selection |

`Directry` |
the working directory used to store the folders containing .out files |

the Total effects and Total Indirect Effects results are returned reading IND statements output, and the Direct Effects results are returned by reading the Model ON statements

returns a list with the following objects:

`TotalPVals` |
A list where each element is the p-value of the Total Effect found under Model Indirect IND statements |

`INDPVals` |
A list where each element is the p-value of the Total Indirect Effect found under Model Indirect IND statements |

`INDNames` |
A matrix where each row contains the names of the variables found under Model Indirect IND statements corresponding to the Total and Total Indirect p-values respectively |

`DirectPVals` |
A list where each element is the p-value of the Direct Effect found under Model created using ON statements |

`DirectNames` |
A matrix where each row contains the names of the variables found under Model ON statements corresponding to the Direct Effect p-values respectively |

this function is a helper function used in `AllBackwardSelect`

to determing which variable relations to delete

William Terry

no reference

See Also as `AllBackwardSelect`

1 2 3 4 5 6 7 8 9 10 11 | ```
## Not run:
Simulated=Simulate(n=1000,MissingYN=0,exampleNum=2)
#MissingYN is 1 for add missing data 0 is default which is don't add missing data
uu=Initialize(Simulated,WhichCat=c(1,1,1,1,1,0,1,0,0),
DataFileName="Example2",NameFile="Example2D",Directry=getwd())
AB=AllBackwardSelect(uu[[1]],Directry=getwd())
x=scan(paste(getwd(),"/","Example2D","/","Example2D_","26",".out",sep=""),what=character())
gg=ParseTotalEffects(x,"Example2D",Directry=getwd())
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.