Learn R Programming

PathSelectMP (version 1.1)

CreateTotalEffMat: Summarizes Total Effects

Description

this is a helper function for AllTotEffOutput1 which is better for the regular user and it is a helper function for CreateTotalSummary, and it is used to extract total effects from M Plus .out files

Usage

CreateTotalEffMat(FileName, Directry)

Arguments

FileName

a list of length 1 containing the string which is the folder name which contains .inp and .out M Plus files after backwards selection

Directry

the path where the folder specified by FileName is located

Value

returns list of length 4:

TotalEffects

dataframe containing the total effects

TotalEffectsStandardError

data frame with the standard errors of the total effects

TotalEffectsPVals

dataframe contains the p values for these effects

TotalEffectsCount

data frame with a 0 if the total effect is not present and a 1 if it is present in the analysis

Details

extracts total effects with standard errors and p values from final .out file

References

M Plus

See Also

AllTotalEffOutput

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]])
yyy=AllSummary2(xxx[[1]])
zzz=AllSummary(xxx[[1]])[[2]]
qqq=AddOnAllInd(xxx[[1]],zzz)
AllDat1=ConvertData2(xxx[[1]],xxx[[2]],yyy[[1]])
AllFileNames1=sapply(AllDat1,OnlyNumberElement,1)
Tots=CreateTotalEffMat(AllFileNames1[1],Directry=getwd())
# }

Run the code above in your browser using DataLab