Dear all,
I am new with stata and currently trying to figure out how to make the following loop work:
forval i=1/2 {
import excel using U:\Stata\Test_`i', firstrow
nl (CE = ({b0=0.5}*(y^{b1=0.8} - x^{b1=0.8})+x^{b1=0.8})^(1/{b1=0.8}))
gen Alpha_`i'=_b[/b1]
}
I get following error Code: no; data in memory would be lost
I think the key is to somehow extract Alpha as a hard value.
Thank you in Advance.
Stefan
Related Posts with Saving variables in foor loop
define a dummy with cond()Dear All, Suppose the data set is Code: * Example generated by -dataex-. For more info, type help d…
Clustering Industry typesI have constructed the following one year lagged regression of ESG on ROA. However, I do not get an …
t-test to check if two means are statistically differentHi, I have a dataset like this. Each patient has multiple admissions and cost corresponding to that…
Dark themeI have STATA 17 on Linux. I use a Linux dark theme for my desktop. Stata generally respect the the…
For elimination a specific group in a variable X on panel dataDear All users, I try to panel regression using panel data. I need to capture effect here that, Yi…
Subscribe to:
Post Comments (Atom)
0 Response to Saving variables in foor loop
Post a Comment