contributionByLevel: Retrieve average contribution by level for each predictor

Description Usage Arguments Value See Also Examples

View source: R/contributionByLevel.r

Description

Retrieve the average contribution by level for each predictor in a dominance analysis. The average contribution defines conditional dominance.

Usage

1
contributionByLevel(da.object, fit.functions = NULL)

Arguments

da.object

dominanceAnalysis object

fit.functions

name of the fit indices to retrieve. If NULL, all fit indices will be retrieved

Value

a list. Key corresponds to fit-index and the value is a matrix, with contribution of each variable by level

See Also

Other retrieval methods: averageContribution(), dominanceBriefing(), dominanceMatrix(), getFits()

Examples

1
2
3
data(longley)
da.longley<-dominanceAnalysis(lm(Employed~.,longley))
contributionByLevel(da.longley)

Example output

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

dominanceanalysis documentation built on Jan. 13, 2021, 3:47 p.m.