Hello,
I am on Eviews 10. I have a group A that has 5 series (!i=1 to 5 and !j=1 to @rows(A)). I would like to calculate @rmean and place in a new group B for each row (!j=1 to end) but I would like to exclude one of the variables. For instance, when !i=1, @rmean would count only series 2 to 5, if when !i=2, @rmean would count 1st and 3-5 series and so on. What is the best way to do that?
Thank you.
@Rmean excluding one of the variables
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: @Rmean excluding one of the variables
Create new groups equal to the initial group, drop the series you want, then use @rmean.
Something like:
Something like:
Code: Select all
group g2 g1
g2.drop !i
=@rmean(g2)
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 12 guests