effectInfo {tlm} | R Documentation |
Interpretation of Effects in Linear, Logistic and Poisson Models with Transformed Variables
Description
This function provides information on interpreting effects in linear, logistic and Poisson models with transformed variables. Specifically, if a summary measure for the effect exists, the function details how to obtain it.
Usage
effectInfo(object)
## S3 method for class 'effectInfo'
print(x, ...)
Arguments
object |
an object of class " |
x |
an object of class " |
... |
further additional arguments for the |
Value
beta |
regression coefficient estimate in the fitted model which is associated to the effect of the explanatory variable of interest on the response variable. |
Xincrease |
type of change in the exploratory variable of interest (additive or realtive) for which a summary effect exists. |
effecttype |
type of effect on the response variable for which a summary effect exists. |
effectsize |
formula for the summary effect size, if any. |
furtherinfo |
further information about how to interpret effects. |
Author(s)
Barrera-Gomez J and Basagana X.
References
Barrera-Gomez J, Basagana X. Models with transformed variables: interpretation and software. Epidemiology. 2015;26(2):e16-17.
See Also
Examples
### Linear model with log transformation in the explanatory variable:
data(cotinine)
head(cotinine)
# model fitting:
modcot <- tlm(y = weight, x = logcotinine, data = cotinine, xpow = 0)
modcot
# information on interpreting the effect:
effectInfo(modcot)
### Linear model with no summary measure of effect:
data(glucose)
head(glucose)
# transformations Y^(-2) and X^(-1/2):
modgluco <- tlm(y = inv2glu, x = inv12tri, data = glucose, ypow = -2, xpow = -1/2)
modgluco
effectInfo(modgluco)