Description Usage Arguments Details Value Warning Author(s) References Examples
These functions decompose the Relative Concentration Index into its components using a (generalized) linear model, optionally using a survey design, or a Cox Proportional Hazards model. Print, summary and plot methods have been defined for the results.
1 2 3 4 5 6 7 8 9 | contribution(object, ranker, correction = TRUE)
## S3 method for class 'coxph'
contribution(object, ranker, correction = TRUE)
## S3 method for class 'glm'
contribution(object, ranker, correction = TRUE)
## S3 method for class 'lm'
contribution(object, ranker, correction = TRUE)
## S3 method for class 'svyglm'
contribution(object, ranker, correction = TRUE)
|
object |
An object of class |
ranker |
A numeric vector containing the wealth variable, from the same dataframe as the outcome. |
correction |
A logical indicating whether the global and partial RCIs should be corrected for negative values using imputation. |
If correction
is TRUE
negative values of components or outcome are corrected using correctSign
with option shift = FALSE
.
An object of class decomposition
containing the following components
betas |
a numeric vector containing regression coefficients |
partialcis |
a numeric vector containing partial RCIs |
confints |
a numeric vector contaning 95% confience intervals for the partial concentration indices |
ranker
should be chosen with care. Ideally, it is a variable from the same dataframe as the other variables. If not, redefine the row names in the model.
Peter Konings
Konings et al., 2009 Speybroeck et al., 2009
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.