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
adding values between two numbers for a consecutive seriesHi All: I would like to add values in between two numbers to generate a series of consecutive numbe…
Loss in life expectancy in period analysisHi everyone, I’m currently modelling loss in life expectancy of cervical cancer patients, with a fl…
Average % difference of prices between countriesDear Kollegues, i have a task, by which I kindly ask for your advice. A dataset consists of multipl…
Graphs for adjusted odds ratios with CI and P-valueHi, Stata Users, I am not so much good in posting on the forum, please excuse me for not adhering th…
Making a variable for one year from information present in both yearsHi everyone, I have 2 years datasets (2007 and 2009) which has information on household food borrow…
Subscribe to:
Post Comments (Atom)
0 Response to Saving variables in foor loop
Post a Comment