how to create dum variable if there are many obs?
Posted: Fri Jan 02, 2009 2:15 am
dear all,
i have a panel data:100 crossid and 30 dateid, then when estimate fixed effection model there will be many dum variables, it will be so crazy for if input every one by hand. is there any command or function i can use in eviews? i mean is there any easy way to create many dum variables, just like the function @trend().
and, i don't know how to use the "if condition", like:
" genr dum1=1 if str>=20 and dum1=0 if str<20"
is this available?
thanks a lot!
i have a panel data:100 crossid and 30 dateid, then when estimate fixed effection model there will be many dum variables, it will be so crazy for if input every one by hand. is there any command or function i can use in eviews? i mean is there any easy way to create many dum variables, just like the function @trend().
and, i don't know how to use the "if condition", like:
" genr dum1=1 if str>=20 and dum1=0 if str<20"
is this available?
thanks a lot!