I have the vector v1, with 26 elements, either being 'Live' or 'Non-live'. When I use tabulate(v1), it returns
tabulate(v1)
Value Count Percent
cat1 0 0.00%
cat2 0 0.00%
Live 5 19.23%
Non-live 21 80.77%
This affects crosstab also. How to prevent tabulate and crosstab functions taking non-existing variables in the vector in to account?