Description Usage Arguments Details Value Author(s) Examples
Calculates Crash Modification Factor (CMF) for a before/after traffic study using Empirical Bayes to avoid regression to the mean (RTM)
1 2 3 |
reference |
Reference data |
before |
Treatment data, before some change was made |
after |
Treatment data, after some change was made |
depVar |
The dependent variable (the number of crashes - should always be of class integer or numeric). |
offsetVar |
An offset variable (eg years) |
indepVars |
Variables used to model the outcome variable depVar |
forceKeep |
A character vector of variable names. These variables will not be considered for removal during the variable selection process. |
alpha |
Level of confidence |
None at this time
Returns a list object containing the CMF, its variance, standard error, and 1-alpha/2 CI
Jung-han Wang and Robert Norberg
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.