Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ambiguous abbreviation error

    Hi, I am new to STATA. I have variable named t##s, where ## stands for 11 to 18, 21 to 28, 31 oi 38 and 41 to 48. now i have to add the values for theses variables row wise. can someone kindly help me with these. Every time I use this it comes Ambiguous abbreviation error.

  • #2
    The information you provide is somewhat scanty and leaves a lot to guesswork. Based on what I imagine your data set to be like and what I imagine "this" in "Every time I use this..." is, I'm guessing what you need is:
    Code:
    egen wanted = rowtotal(t*s)
    If that's not it, when posting back, and more generally in the future when asking for help with code:
    1. Show the code you tried, exactly as you tried it. It's best to do that by copy/paste from your do-file, log-file, or the Results windows into this Forum editor.
    2. Show the response you got from Stata, also exactly.
    3. Show example data that reproduces your problem, and use the -dataex- command to do that. If you are running version 18, 17, 16 or a fully updated version 15.1 or 14.2, -dataex- is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.
    The more information you give, the better your chances of getting a timely and helpful response.

    Comment

    Working...
    X