Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/TotalRiskRatios.R
Risk Ratios for the total effects are calculated using threshold values obtained for direct effects and the total effect values see in AllTotalEffOutput
1 | TotalRiskRatios(AllDat, Directry = getwd(), InputDepVal = 1)
|
AllDat |
output from |
Directry |
this the path where the folder specified by |
InputDepVal |
a number which is the value of the dependent variable used for risk ratio which is compared to 0 in risk ratio calculation, default value is 1 |
total effects are sum of direct and indirect effects where indirect effects are the product of all direct effects in the chain which comprises the indirect variable chain, this total effect value is converted to its probability using the threshold values for direct effects and multiplying the total effect with the specified input value
returns data frame with risk ratios in place of total effects
of course backwards selection and other functions must run first, see example
William Terry
M Plus
codeAllTotalEffOutput, codeAverageRRs
1 2 3 4 5 6 7 8 9 10 | ## 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]])
RRT1=lapply(AllDat1,TotalRiskRatios,InputDepVal=1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.