Closed Nikita2804 closed 6 years ago
Hi,
Thanks for pointing out this issue and for using the compareGroups package. We appreciate your feedback which improves the package a lot. In fact, we already have fixed this problem in compareGroups function code in the latest package version available on Github repository. You can install and download this version by typing:
library(devtools) devtools::install_github("isubirana/compareGroups")
In your example, instead of reporting 5 "yes", it reports 5 "no". So, the "hide.no" argument has no effect because in fact the "y" variable has only one level with data.
Regards,
Isaac Subirana.
Hi,
I am trying to use compareGroups() on a dataframe variable that has only 1 level - "No". When createTable() is run on the compareGroups object using hide.no="No", the resulting output is 100% instead of 0% for the variable. Please see below, code and the resulting output
Code:
Output:
Can you please look into this?
Thanks, Nikita.