The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Too long command in Stata?
Re: Too long command in Stata? [message #11636 is a reply to message #11635] Thu, 19 January 2017 13:12 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3117
Registered: February 2013
Senior Member
Following is another response from Senior DHS Stata Specialist, Tom Pullum:

Did you read the error statement? As it says, this "line" has too many characters and too many components. Beyond that, it is very ambiguous because you do not have parentheses. However, even if it were shorter, it would not execute. Can't you see that something like "if A & B | C & D" is ambiguous? Such a statement could be interpreted as "if (A & B) | (C & D)" or as "if A & (B | C) & D" or a few other variations. What is it that you want to do? You certainly do not need to run through all possible combinations of v202, v203, v204, and v205, which is what you seem to be doing. If you will insert left and right parentheses to remove the ambiguity, I will then suggest how you could reduce the length of the line.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: stset for survival analysis for complex survey in IR files using Stata
Next Topic: Using community-level variables in regression models
Goto Forum:
  


Current Time: Sun Jul 28 02:18:58 Coordinated Universal Time 2024