Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/CreateTotalEffMat.R
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
1 | CreateTotalEffMat(FileName, Directry)
|
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
|
extracts total effects with standard errors and p values from final .out file
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 |
this function is applied over all imputed data sets or can be used with one data set and analysis at a time, but this function is a helper function that is likely not necessary for the regular user
William Terry
M Plus
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## 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())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.