Hello,
I have some mortality data, da(a,t), of age group a in year t. For an olg model I want to convert this data to similar data based on kohort, identified by the year of birth, so that the age, a = t-k.
In maths notation I then want to define a perameter:
d(k,t) = da(t-k,t),
but as we cannot subtrackt elements of sets, this clearly isn’t possible.
My attempt, the whole gams file is attached:
SETS
k kohort /19202200/
t time /19432200/
a age /23*95/
Alias (t, tp)
Alias (k, kp);
*IMPOTERING FROM EXCEL
TABLE d(a,t)
$call =xls2gms R=A1:IY74 “kvinner_u.xlsx” o=v.inc
$include v.inc
PARAMETER
de(k,t) dead in a kohort k at time t;
de(k,t) = sum(a, d(a,t)$(ord(t)-ord(k))=ord(a));
Display de;
This does not work and I get:
E x e c u t i o n
---- 105 PARAMETER de dead in a kohort k at time t
( ALL 0.000 )
Does anyone know a way to do this?
Yours,
Ragnhild Dalsbø
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.