Announcement

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

  • "[" invalid command name error while running simple linear regression in STATA

    Hi,

    I am trying to run the linear regression command (reg dep independent variables) in STATA but apparently, it gives an error when I execute the command.
    My dependent variable is: Monthly electricity consumption of the household in summers whereas independent variables are: total dwelling size, total number of adults, total number of children, total number of working members, annual income of the household.
    I am using STATA 12.1 version. The invalid command name error "[" is quite confusing as I am not using closed brackets anywhere in the command.
    Any help is appreciated.

  • #2
    But what did you type?

    Comment


    • #3
      Hi Nick,
      I wrote the command as follows:
      reg monthlyelectricityconssum dwellingsizesqft totalworkingmem totaladults totalnumberofchildren annualincome

      Comment


      • #4
        I don't have an explanation on that evidence.

        Comment

        Working...
        X