# Parse Total, Direct, and Indirect Effects

### Description

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

### Usage

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

### Arguments

`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 |

### Details

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

### Value

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 |

### Note

this function is a helper function used in `AllBackwardSelect`

to determing which variable relations to delete

### Author(s)

William Terry

### References

no reference

### See Also

See Also as `AllBackwardSelect`

### Examples

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)
``` |

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