jstable
jstable copied to clipboard
an element beyond its index range
I'm new to R programming, and I'm wondering why this error is happening
res <- TableSubgroupMultiGLM(formula =HY~EC,var_subgroups = c("age","sex","ethnic","education","BMI","smoking","drinking"), data = df) Error in as.character(formula)[[3]] : subscript out of bounds
Can you share the data? Is EC variable categorical with > 2 level?