Description Usage Arguments Value See Also Examples
View source: R/contributionByLevel.r
Retrieve the average contribution by level for each predictor in a dominance analysis. The average contribution defines conditional dominance.
1 | contributionByLevel(da.object, fit.functions = NULL)
|
da.object |
dominanceAnalysis object |
fit.functions |
name of the fit indices to retrieve. If NULL, all fit indices will be retrieved |
a list. Key corresponds to fit-index and the value is a matrix, with contribution of each variable by level
Other retrieval methods:
averageContribution()
,
dominanceBriefing()
,
dominanceMatrix()
,
getFits()
1 2 3 | data(longley)
da.longley<-dominanceAnalysis(lm(Employed~.,longley))
contributionByLevel(da.longley)
|
Contribution by level
* Fit index: r2
level GNP.deflator GNP Unemployed Armed.Forces Population Year
0 0.943 0.967 0.253 0.209 0.922 0.943
1 0.294 0.320 0.093 0.065 0.292 0.300
2 0.044 0.066 0.025 0.004 0.047 0.050
3 0.002 0.018 0.022 0.006 0.005 0.008
4 0.001 0.010 0.016 0.009 0.004 0.007
5 0.000 0.001 0.009 0.012 0.000 0.008
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.