naive: naive

Description Usage Arguments Details Value Author(s) Examples

Description

Calculates Crash Modification Factor (CMF) for a before/after traffic study using Naive method

Usage

1
naive(before, after, depVar, db = 1, da = 1, alpha = 0.95)

Arguments

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).

db

duration of before period (typically years)

da

duration of after period (typically years)

alpha

Level of confidence

Details

None at this time

Value

Returns a list object containing the CMF, its variance, standard error, and 1-alpha/2 CI

Author(s)

Jung-han Wang and Robert Norberg

Examples

1
2
3
data(Before)
data(After)
naive(before = Before, after = After, depVar = "kabco", db = 1, da = 3, alpha = 0.9)

rnorberg/bastudy documentation built on May 27, 2019, 9:57 a.m.