averageContribution: Retrieve average contribution of each predictor in a...

Description Usage Arguments Value See Also Examples

View source: R/averageContribution.r

Description

Retrieve the average contribution for each predictor. Is calculated averaging all contribution by level. The average contribution defines general dominance.

Usage

1
averageContribution(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 vector, with average contribution for each variable

See Also

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

Examples

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

Example output

Average Contribution by predictor
   GNP.deflator  GNP Unemployed Armed.Forces Population  Year
r2        0.214 0.23       0.07        0.051      0.212 0.219

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