Description Usage Arguments Details Value Note Author(s) References Examples
Averages the risk ratio values for all paths in imputed data sets if the specific path relationship appears frequently enough as specified by user
1 | AverageRRs(ListORatioMats, GreaterThanCountNum)
|
ListORatioMats |
a list of dataframe where each dataframe is the risk ratios matrix calculated for each imputed data set |
GreaterThanCountNum |
the number of times a path relationship should appear more times than in order to be included in averaging of risk ratios for this relationship default is 0 |
adds risk ratios for relationship and divides by number of times this relationship appears as long as the relationship appears more than GreaterThanCountNum
AverageRiskRatios |
data frame consisting of averaged risk ratios |
CountInAverage |
same data frame as |
no notes
William Terry
no references
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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]])
AllDat1=ConvertData2(xxx[[1]],xxx[[2]],yyy[[1]])
wwwA=lapply(AllDat1,CalculatRiskRatios,NADes=c(-99),WhichCat=c(1,1,1,1,0),WhichRiskCalc=c(0,
list(c(0,1,2)),list(c(0,1,2,4)),list(c(0,1,2)),0))
AvgwwwA=AverageRRs(wwwA,0)
RRT1=lapply(AllDat1,TotalRiskRatios,InputDepVal=1)
RRT1avg=AverageRRs(RRT1,0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.