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
Help with line graphsHello, Could someone kindly help with plotting a graph showing trends of time. This is a study look…
Continuos selection variable, switching modeI wish to estimate the following model: y=b0+b1*x1+b2*X2+mu if X2>= f(x1) and y=a0+a1*x1+epsilon …
Help with line graphsHello, Could someone kindly help with plotting a graph showing trends of time. This is a study look…
Precision issue- if command doesn't select variable with requested valueshi all, I have a variable (crops_yield) with following kind of observations. The variable type is do…
Monte Carlo Simulation to generate garch processCan anyone tell what's wrong with my simulation: ////////////////////////////////////////the Code: c…
Subscribe to:
Post Comments (Atom)
0 Response to Saving variables in foor loop
Post a Comment