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
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
Comment