| collindlnm | R Documentation | 
Simulates results from a distributed lag model under an hypothetical effect
pattern provided by the user, which can be linear or non-linear. The output
is the passed to the plot method to visualize consequences of
collinearity.
collindlnm(
  model,
  x,
  cb,
  at = 1,
  cen = 0,
  effect,
  type = c("coef", "risk"),
  shape = c("linear", "nonlinear"),
  nsim = 100,
  verbose = TRUE,
  seed = NULL
)
| model | a model that includes a crossbasis. Currently, models allowed are those
of class  | 
| x | if  | 
| cb | an object of class  | 
| at | the increase(s) in the predictor under study to be considered to report the
effects of the variable. If  | 
| cen | a number. Reference value of the predictor under study, used to calculate
effects. If  | 
| effect | a vector or a matrix, depending on  | 
| type | a character. If  | 
| shape | the shape of the relationship between the linear predictor of the model
and the outcome. Default is  | 
| nsim | number of simulations. Default is 100. | 
| verbose | a logical value indicating output status messages. Default is  | 
| seed | a number. Seed for reproducibility of results. Default is  | 
A list including the results of the simulations to be passed to the plot
method.
crossbasis, glm,
lme.
# For detailed examples:
browseVignettes("collin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.