PathSelectMP: Backwards Variable Selection for Paths using M Plus

Primarily for use with datasets containing only categorical variables, although continuous variables may be included as independent variables in paths. Using M Plus, backward variable selection is performed on all Total, Total Indirect, and then Direct effects until none of these effects have p-values greater than the specified target p-value. If there are missing values in the data, imputations are performed using the Mice package. Then selection is performed with the imputed data sets, and results are averaged.

Author
William Terry, Meredith Ray, Hongmei Zhang
Date of publication
2016-05-20 01:16:03
Maintainer
William Terry <wterryj6a214@gmail.com>
License
GPL (>= 2)
Version
1.0

View on CRAN

Man pages

AddOnAllInd
Indirect Effect Writer
AddOnINDStatements
Indirect Effect List Creator
AllBackwardSelect
Run Backward Variable Selection in Path Analysis with M Plus
AllSummary
Direct Effects Path Summaries
AllSummary2
Direct Effect Summary
AllTotalEffOutput
Summary of Total Effects
AverageRRs
Calculate Average Risk Ratios over all imputed data sets
CalculatRiskRatios
Calculate Risk Ratios from Direct Effects
CheckVarNames
Variable Name Check
ConvertData2
Converts Necessary Inputs for 'CalculatRiskRatios'
ConvertData3
Used to make multiple list names for imputations
CountImputedEffect
Count and Average Effects for All Imputed Datasets
CreateInitializeMatrix
Create Possible Path Matrix
CreateSummaryMats
Extract and Summarize Direct Effects
CreateSummaryMats2
helper function for 'AddOnAllInd'
CreateTotalEffMat
Summarizes Total Effects
CreateTotalSummary
Summarizes and Averages Total Effects
DatImputations
Impute Data
Initialize
Create Initial Objects
mod
Simple Modular arithmetic
MPlusBackwardSelect
Backward Selection Helper Function
NewBinseqWrap
Possible Combinations of Elements, 1 from each list
NewNamesThresh
Threshold Names
NumCat
Number of Categories
NumEndFile
Extract Number From INP and OUT Files
OnlyNumberElement
indexes list of lists
ParseTotalEffects
Parse Total, Direct, and Indirect Effects
ParseTotalEffects2
Parse and Exctract Total Effects
PathNames
M Plus Path description
PathSelectMP-package
Backwards Variable Selection for paths using M Plus
Simulate
Simulate data set
SpecialMatch
Match and delete elements
TotalRiskRatios
Calculate Risk Ratios for total effects
WriteInitialInpFile
Write Inp File

Files in this package

PathSelectMP
PathSelectMP/NAMESPACE
PathSelectMP/R
PathSelectMP/R/PathSelectMP.R
PathSelectMP/MD5
PathSelectMP/DESCRIPTION
PathSelectMP/man
PathSelectMP/man/CreateTotalEffMat.Rd
PathSelectMP/man/AddOnAllInd.Rd
PathSelectMP/man/AllSummary.Rd
PathSelectMP/man/AllSummary2.Rd
PathSelectMP/man/Initialize.Rd
PathSelectMP/man/Simulate.Rd
PathSelectMP/man/AllTotalEffOutput.Rd
PathSelectMP/man/NumCat.Rd
PathSelectMP/man/ParseTotalEffects.Rd
PathSelectMP/man/AverageRRs.Rd
PathSelectMP/man/CreateInitializeMatrix.Rd
PathSelectMP/man/AllBackwardSelect.Rd
PathSelectMP/man/MPlusBackwardSelect.Rd
PathSelectMP/man/ConvertData2.Rd
PathSelectMP/man/CreateSummaryMats2.Rd
PathSelectMP/man/PathSelectMP-package.Rd
PathSelectMP/man/WriteInitialInpFile.Rd
PathSelectMP/man/NewNamesThresh.Rd
PathSelectMP/man/ParseTotalEffects2.Rd
PathSelectMP/man/CheckVarNames.Rd
PathSelectMP/man/TotalRiskRatios.Rd
PathSelectMP/man/PathNames.Rd
PathSelectMP/man/SpecialMatch.Rd
PathSelectMP/man/CalculatRiskRatios.Rd
PathSelectMP/man/mod.Rd
PathSelectMP/man/NumEndFile.Rd
PathSelectMP/man/NewBinseqWrap.Rd
PathSelectMP/man/DatImputations.Rd
PathSelectMP/man/CountImputedEffect.Rd
PathSelectMP/man/CreateTotalSummary.Rd
PathSelectMP/man/AddOnINDStatements.Rd
PathSelectMP/man/ConvertData3.Rd
PathSelectMP/man/OnlyNumberElement.Rd
PathSelectMP/man/CreateSummaryMats.Rd