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
Assign observations in one year to a different yearDear Statalist Community, I need help with the following problem: In my dataset I have multiple ob…
GARCH model for returns seriesHello everyone, I am studying the effect of the market on the return series of precious metal asse…
Graphing comparison of model using linear age splines vs age dummiesHello, I have a OLS cost model with the cost of health care as the dependent variable and a series …
DestringDear all, I am trying to destring my variable "district". However, I get the following error: Co…
Using a firm as its own controlDear all, In my study, I am looking at the change in institutional holdings at a certain point (Res…
Subscribe to:
Post Comments (Atom)
0 Response to Saving variables in foor loop
Post a Comment