Learn R Programming

PathSelectMP (version 1.1)

AllSummary: Direct Effects Path Summaries

Description

One of the main and most important functions. Ties together Indirect Statements and summary output of direct effects

Usage

AllSummary(AllNames, Directry = getwd(), GreaterThanNum = 0, PasteIND = 1)

Arguments

AllNames

AllNames is the filename where the M Plus.inp and .out files are located

Directry

this the path where the folder specified by AllNames is located and default is working directory

GreaterThanNum

number of output files containing path over which to average which must be less than the number of imputations and is only used if multiple imputations are performed. Default 0 which is to use all data sets in mean calculations.

PasteIND

a value of 1 indicates to use all possible indirect effects in modelling and a value of 0 is input to only use direct effects in modelling

Value

Average

list with the following objects:

DirectEffectCounts

count matrix for number of times path appears which will be 1's and 0's if no imputed data sets are used

MeanDirectEffects

mean values of direct effects for paths which are just the direct effects if no imputations are performed

MeanStandardError

the mean square error of the effect parameters averaged over imputed data sets if they exist

MeanPValue

mean p values of these direct effects

MinPVals

minimum p values of these direct effects

MaxPVals

maximum p value of these direct effects

MedianPVals

median p value of these direct effects

INDStatements

lists of indirect effect relations

Details

Must initialize and run backwards selection before using this function

References

M Plus

See Also

Initialize AllBackwardSelect

Examples

Run this code
# NOT RUN {
InitD=Simulate(MissingYN=1)
xxx=Initialize(InitD,NumImpute=3,WhichCat=c(1,1,1,1,0))
ggg=AllBackwardSelect(xxx[[1]])
zzz=AllSummary(xxx[[1]])[[2]]
# }

Run the code above in your browser using DataLab