`convert.d.to.nnc.Rd`

These two functions are used by `behaviorchange::nnc()`

to compute the Numbers
Needed for Change.

convert.d.to.nnc(d, cer, r = 1, eventDesirable = TRUE, eventIfHigher = TRUE)

d | The value of Cohen's |
---|---|

cer | The Control Event Rate. |

r | The correlation between the determinant and behavior (for mediated Numbers Needed for Change). |

eventDesirable | Whether an event is desirable or undesirable. |

eventIfHigher | Whether scores above or below the threshold are considered 'an event'. |

The converted value.

Gruijters, S. L., & Peters, G. Y. (2019). Gauging the
impact of behavior change interventions: A tutorial on the Numbers
Needed to Treat. *PsyArXiv.* doi:10.31234/osf.io/2bau7

convert.d.to.eer(d=.5, cer=.25);#> [1] 0.4307403convert.d.to.nnc(d=.5, cer=.25);#> [1] 5.532801 #> attr(,"eer") #> [1] 0.4307403