Learn R Programming

PathSelectMP (version 1.1)

CountImputedEffect: Count and Average Effects for All Imputed Datasets

Description

averages direct effects and corresponding standard errors and p values for results from each imputed data set

Usage

CountImputedEffect(LL, LLse, LLPVal, GreaterThanNum)

Arguments

LL

list containing square matrices as each element, 1 matrix for each imputed data set, with the final direct effects

LLse

list containing square matrices as each element, 1 matrix for each imputed data set, with the final stander errors for direct effects

LLPVal

list containing square matrices as each element, 1 matrix for each imputed data set, with the final p values for direct effects

GreaterThanNum

an integer less than the number of imputed data sets representing the number of times a path must be counted more than this number of times in order to be included in averaging of effects, effect standard errors, and effect p values

Value

list which contains 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

Details

this function is a helper function and does not need to be used by the regular user

References

no references

See Also

AllSummary

Examples

Run this code
# NOT RUN {
InitD=Simulate()
xxx=Initialize(InitD)
ggg=AllBackwardSelect(xxx[[1]])
AllNames=xxx[[1]]
LL1=lapply(AllNames,CreateSummaryMats,OutputSE=FALSE,OutputPVal=FALSE,Directry=getwd())
LL1se=lapply(AllNames,CreateSummaryMats,OutputSE=TRUE,OutputPVal=FALSE,Directry=getwd())
LL1p=lapply(AllNames,CreateSummaryMats,OutputSE=FALSE,OutputPVal=TRUE,Directry=getwd())
LLL=CountImputedEffect(LL1,LL1se,LL1p,GreaterThanNum=0)
# }

Run the code above in your browser using DataLab