Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fcollapse fails with string by variables (Stata 14/MP) #12

Closed
mcaceresb opened this issue Oct 26, 2017 · 6 comments
Closed

fcollapse fails with string by variables (Stata 14/MP) #12

mcaceresb opened this issue Oct 26, 2017 · 6 comments

Comments

@mcaceresb
Copy link

. sysuse auto, clear
(1978 Automobile Data)

. version 14

. fcollapse price, by(make)
      st_varvaluelabel():   181  Stata returned error
    Factor::store_keys():     -  function returned error
            f_collapse():     -  function returned error
                 <istmt>:     -  function returned error
r(181);
@mcaceresb mcaceresb changed the title fcollapse failes with string by variables (Stata 14/MP) fcollapse fails with string by variables (Stata 14/MP) Oct 26, 2017
@sergiocorreia
Copy link
Owner

Interesting. On Stata 14 this works fine, so I'm guessing that one of the Mata functions changed (and that is not supported by version control AFAIK).

I also checked the code and there is nothing obviously code with this line. The only time st_varvaluelabel() is called is if st_isnumvar() is true, as per the line above.

@mcaceresb
Copy link
Author

Actually, I get another error with ftools on the server I'm running this on:

. sysuse auto
(1978 Automobile Data)

. fisid make
function is_id() not declared in class Factor
(2 lines skipped)
(error occurred while loading fisid.ado)
r(3000);

. fisid price
function is_id() not declared in class Factor
(2 lines skipped)
(error occurred while loading fisid.ado)
r(3000);

All works fine on my local machine.

@sergiocorreia
Copy link
Owner

Could you try running ftools, compile and then clear all?

@mcaceresb
Copy link
Author

Same errors.

@sergiocorreia
Copy link
Owner

BTW, I tried on Stata/MP 15.0 (Windows) and cannot replicate it either. I don't have access to a Linux version of Stata 15, so I'll probably hold o fixing the bug until I can spot it.

@mcaceresb
Copy link
Author

I'm closing this. I tried it on a different server with Stata 15 (MP) and the issue is gone, so i reckon it specific to the machine I was using (still odd, however).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants