library(Colossus)
#> Note: From versions 1.3.1 to 1.4.1 the expected inputs changed. Regressions are now run with CoxRun and PoisRun and formula inputs. Please see the 'Unified Equation Representation' vignette for more details.
library(data.table)
Dose Response Formula
As previously discussed, Colossus features a term composed of the sum of multiple linear and non-linear elements which can be used to define many dose-response curves used in radiation epidemiology. These terms are referred to as dose-response terms, but there is nothing prohibiting them from being used for non-dose covariates. The following formulae are available, reproduced from the starting description vignette.
For every subterm type, there are between 1 and 3 parameters that fully define the curve. The Linear-Quadratic and Linear-Exponential curves are continuously differentiable, so there are only 2-3 parameters that can be set.
Using The Different subterms
Subterm | tform Entry | Description |
---|---|---|
Exponential | loglin_top | parameter in the exponent of the term, |
Exponential | loglin_slope | parameter multiplied by the exponential assumed to be 1 if not given, |
Linear Threshold | lin_slope | slope for the linear term, |
Linear Threshold | lin_int | intercept for the linear term, |
Step Function | step_slope | step function value, |
Step Function | step_int | step function intercept, |
Quadratic | quad_slope | parameter multiplied by the squared value, |
Linear-Exponential | lin_exp_slope | Linear slope term, |
Linear-Exponential | lin_exp_int | Intercept between linear to exponential, |
Linear-Exponential | lin_exp_exp_slope | Slope term in the exponential, |
Linear-Quadratic | lin_quad_slope | Linear slope term, |
Linear-Quadratic | lin_quad_int | Intercept between linear to quadratic, |
The linear-exponential and linear-quadratic curves must be either completely fixed or completely free. In contrast, the exponential, linear threshold, and step-function curves can be partially fixed. The exponential term can be provided with only the covariate in the exponent and assume the magnitude to be 1. The linear threshold and step functions can be provided a fixed threshold covariate, which can be used to define a linear-no-threshold model or a combination of linear and step functions with a known threshold.