You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are too many unique values in a string/categorical variable, levelsof breaks with an error message of "cannot compute". I have just run into this with a variable that had 700k+ unique values.
It now runs with the workaround of replacing the following lines
* Number of levels
preserve
keep `var'
duplicates drop
count
local varlevels = r(r)
restore
* Number of complete observations
qui count if !missing(`var')
local varcomplete = r(N)
There may be a more elegant approach, though. If no one can think of one, I can open a PR with this one.
The text was updated successfully, but these errors were encountered:
If there are too many unique values in a string/categorical variable,
levelsof
breaks with an error message of "cannot compute". I have just run into this with a variable that had 700k+ unique values.It now runs with the workaround of replacing the following lines
ietoolkit/src/ado_files/iesave.ado
Lines 599 to 603 in fa1146e
with
There may be a more elegant approach, though. If no one can think of one, I can open a PR with this one.
The text was updated successfully, but these errors were encountered: