asjadnaqvi / stata-alluvial

A Stata package for alluvial plots
MIT License
5 stars 3 forks source link

Alluvial chart shows errors! #2

Closed datalake101 closed 5 months ago

datalake101 commented 1 year ago

. sysuse nlsw88.dta, clear (NLSW, 1988 extract)

. alluvial race married collgrad smsa union race has more than 20 categories. The variable might be continuous. Please simplify or drop the variable. married has more than 20 categories. The variable might be continuous. Please simplify or drop the variable. collgrad has more than 20 categories. The variable might be continuous. Please simplify or drop the variable. smsa has more than 20 categories. The variable might be continuous. Please simplify or drop the variable. union has more than 20 categories. The variable might be continuous. Please simplify or drop the variable.

asjadnaqvi commented 1 year ago

I just checked on a new computer and I am not getting this error. Which version of Stata do you have?

It might have to do with levelsof not returning a r(r) option in earlier versions.

asjadnaqvi commented 1 year ago

@datalake101 is this issue still relevant?