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.
Related Posts with "[" invalid command name error while running simple linear regression in STATA
Regression based for different time periods based on a conditionDear Stata Users Yesterday I posted a question under the head, "Regression-based on different time p…
how to control for individual fixed effects in Stata?I know one method can be: Code: regress y x1 x2 i.id, vce(robust) But the problem is in my data set…
Creating a sum variable which depends on 2 other variablesHello! I am currently working on a panel dataset containing, amongst others, the variables "compani…
Current and Lagged Values of an Independent Variable in xtabond2Hi everyone! May I ask if it is technically correct to include both current and lagged values of an …
Propensity Score Matching - Regression on a matched sample and introducing new controlsHi, I am using propensity score matching to reduce selection bias and then running a regression on …
Subscribe to:
Post Comments (Atom)
0 Response to "[" invalid command name error while running simple linear regression in STATA
Post a Comment