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
Does the drive Stata is installed on matter?Hi all, I'm trying to optimise my simulation study and was wondering if the location of the Stata in…
graph like this?Dear All, I was asked how to draw a graph like this. Array Unfortunately, no data is available at …
Import 'dd.mm.yy' format date to StataHi, I would like to import the following dates "Date" to Stata date format. Anyone has delt with th…
Display Median for Paired t testHello folks I have a data set with several observations at different times for companies. However, …
Import Matlab dataset to StataHi, Is there any way Stata can import MATLAB Data (.mat)? I cannot seem to be able to upload the da…
Subscribe to:
Post Comments (Atom)
0 Response to Saving variables in foor loop
Post a Comment