Eviews 7.1
I working with unbalanced panel data set (870, 3705)
How can I extract the maximum value for each project (870) and dump it into a series
tried:
series try=@maxby(projectnum, @crossid)
Second
I have a decriptive string variable which vaires within each project and across project - I'm sampling the string using @instr(xxxxx, "yyyy")>0
Can I add booleans within the command as so
@instr(xxxxx, "yyyy" or "zzzz" and "oooo")>0
thanks
unbalanced panel
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: unbalanced panel
did the @maxby not work for you?
In answer to the second part, yes:
or something along those lines.
In answer to the second part, yes:
Code: Select all
smpl if @instr(xxxxx, "yyyy")>0 or @instr(xxxxx,"zzzz")>0 and @instr(xxxxx,"oooo")>0
Re: unbalanced panel
get an error when I try this
genr try=@maxby(qty,@X)
I want put the the maximum value from each "X" section in a new series called "try". The number of observations vary by "X"
Works if I just want the max of "qty" but when I add by the cross section identifier (in this case @X) I get this error
@maxby is not a Genr or series expression function
genr try=@maxby(qty,@X)
I want put the the maximum value from each "X" section in a new series called "try". The number of observations vary by "X"
Works if I just want the max of "qty" but when I add by the cross section identifier (in this case @X) I get this error
@maxby is not a Genr or series expression function
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: unbalanced panel
genr = @maxsby(qty,@crossid)
(note that it is @maxSby, and note that you need to keep it as "@crossid")
(note that it is @maxSby, and note that you need to keep it as "@crossid")
Who is online
Users browsing this forum: No registered users and 2 guests
