Hi
the @rsum(g) command sums the numbers even if there are some observations that has an NA.
is there a command that returns an NA if there is one or more observations with an NA?
(if not, it would be nice if that could be an option in the @rsum command)
THomas
@rsum(g) row-wise sum. the sum of the rows of G.
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @rsum(g) row-wise sum. the sum of the rows of G.
There is not, but you can code it yourself fairly easily:
Code: Select all
series mysum = @recode(@robs(mygroup)=mygroup.@count, @rsum(mygroup), na)
-
tvonbrasch
- Posts: 569
- Joined: Fri Apr 15, 2011 5:35 am
Re: @rsum(g) row-wise sum. the sum of the rows of G.
excellent, thanks!
Who is online
Users browsing this forum: No registered users and 2 guests
