jepusto / scdhlm

An R package for estimating between-case standardized mean difference effect sizes for single-case designs. The package implements the methods proposed in Hedges, Pustejovsky, & Shadish (2012, 2013) and Pustejovsky, Hedges, & Shadish (2014).
http://jepusto.github.io/scdhlm/
4 stars 1 forks source link

Informative error when outcome variable is not numeric #76

Closed jepusto closed 2 years ago

jepusto commented 2 years ago

In the scdhlm app, if the user inadvertently selects an outcome variable that is not numeric, the app doesn't provide any indication of a problem but throws a cryptic error message on the Inspect tab. Add an informative error message if the outcome variable is not numeric.

This is related to #67. For testing, try using tab D2UZ6IFU-1-2 in Text reading fluency data per study.xlsx, but setting Outcome (a text variable) as the outcome variable.

jepusto commented 2 years ago

Closed with https://github.com/jepusto/scdhlm/commit/9c7584da65cf2df5aa2a3af94e5cab1f12827c1c