TableOne stratifiers

Hello,
I have been working with a few datasets and want to create a table of responses, stratified by a variable. This has worked with all datasets except for one, and I'm not sure why. My data is called "december data" and the variable I want to stratify is "agency." I also created a list called "myvars" of all my variables, and "CatVars" for my categorical variables. I have checked that these are all accurate. When I create a tableone without stratifiers, it works, but as soon as I include strata into the code, it does not work. Here is my code:

tablea <- CreateTableOne(vars = myvars, factorVars = catVars, strata = "agency", data = decemberdata)
tablea

Thank you to anyone who may be able to assist!

needs more to go on. See the FAQ: How to do a minimal reproducible example reprex for beginners.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.