CountImputedEffect: Count and Average Effects for All Imputed Datasets

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/CountImputedEffect.R

Description

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

Usage

1
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

Details

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

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

Note

No notes

Author(s)

William Terry

References

no references

See Also

AllSummary

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

## End(Not run)

PathSelectMP documentation built on May 2, 2019, 3:15 a.m.