Here is my code as shown below, when I run it, it always report error "( invalid name". Somebody please help me with this.
tempname myresults
postfile `myresults' threshold intercept gradient se using myresults.dta
forval x=1(1)65{
capture noisily xi:regress lnSale lnYearlyIndOut fyear if mi==`x',robust
post `myresults' (`x') (`=_b[_cons]') (`=_b[lnYearlyIndOut]') (`=_se[lnYearlyIndOut]')
}
Related Posts with why always (invalid name
Calculating time-variant Herfindahl index (HHI)Dear all, I am looking to calculate the Herfindahl index over the variable "industry" by group "ID"…
Help!-Using Diff in Diff estimates with Twin Studies to control for heritabilityOk so I know nothing about econometrics or research methods but I have this project for my Humanomic…
Need Help!Hey guys, currently working on a final project for my capstone course in college. I am studying the …
Help generating region variableDear all, I am using Stata 16, on mac. I want to create a region variable based on my dummy variabl…
generating a variable that computes conditional expectationHi, I have two variables of height and weight, I need the command that generates a third variable t…
Subscribe to:
Post Comments (Atom)
0 Response to why always (invalid name
Post a Comment