Hi,
I am trying to save output from ineqdeco (from scc, updated) as a variable, but can't work it out. I get no error message, just the message "(0 real changes made)". The code I used is
I also tried to put the ineqdeco inside the loop.
Then it looks like it works, and I get the message "(15,957 real changes made, 15,957 to missing)", but the variable still only contains missing values.
Could anyone please tell me what I am doing wrong? I would really appreciate help on this, sine I'm completely stuck.
Sincerely,
Helena
I am trying to save output from ineqdeco (from scc, updated) as a variable, but can't work it out. I get no error message, just the message "(0 real changes made)". The code I used is
Code:
gen ge1 = . qui ineqdeco Outcomm_f, by(year) foreach z of varlist year { replace ge1=r(ge1_`z') if year==`z' }
Code:
foreach z of varlist year { qui ineqdeco Outcomm_f if year==`z' replace ge1=r(ge1_`z') if year==`z' }
Could anyone please tell me what I am doing wrong? I would really appreciate help on this, sine I'm completely stuck.
Sincerely,
Helena
Comment