decomposition {rineq} | R Documentation |
Decomposition analysis
Description
Used by the wrapper contribution()
but can be used manually. Calculates the decomposition for a given regression model.
Usage
decomposition(outcome, betas, mm, ranker, wt, correction, citype = "CI")
Arguments
outcome |
Outcome variable |
betas |
Beta coefficients from regression. |
mm |
Model matrix from regression |
ranker |
Ranking variable |
wt |
Weights |
correction |
Apply sign correction? |
citype |
Character, CI type to be calculated, defaults to |
Value
S3 object of class decomposition
Examples
fit.lm = lm(mtcars$mpg ~ mtcars$cyl)
decomp = decomposition(mtcars$mpg, coefficients(fit.lm), fit.lm$model,
mtcars$hp, wt = rep(1, nrow(mtcars)), correction = FALSE)
summary(decomp)
[Package rineq version 0.2.3 Index]