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.

AuthorWilliam Terry, Meredith Ray, Hongmei Zhang
Date of publication2016-05-20 01:16:03
MaintainerWilliam Terry <wterryj6a214@gmail.com>
LicenseGPL (>= 2)
Version1.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

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

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