Learn R Programming

PathSelectMP (version 1.1)

CreateTotalSummary: Summarizes and Averages Total Effects

Description

this is a helper function for AllTotEffOutput which is better for the regular user

Usage

CreateTotalSummary(AllTots, GreaterThanNum)

Arguments

AllTots

is output from CreateTotalEffMat applied to each imputed data sets so it is a list of length number of imputed data sets (or length 1 if no imputed data sets) cotaining in each list a list of dataframes where each data frame is total effects, standard errors, p-values, path designation respectively

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.

Value

output is same as AllTotalEffOutput which is easier to run

Details

not necessary for regular user

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)
Tots1=lapply(AllFileNames1,CreateTotalEffMat,Directry=getwd())	
AllTotEffOutput1=CreateTotalSummary(Tots1,GreaterThanNum=0)
# }

Run the code above in your browser using DataLab