Also, I think this file would fit better in the models package, instead of in the rdd package.