Group Mean as a Vector/Matrix?
Moderators: EViews Gareth, EViews Moderator
Group Mean as a Vector/Matrix?
Is there a way to obtain a vector/matrix with the common sample mean of a group? I'm planning to use Matlab to run some simulations and I need to pass both the mean and covariances for a collction of groups from eviews to matlab. The covariance part is pretty straightforward using group.cov(out=somename) How do I accomplish the same thing for the common sample mean of the series in the group?! It seems like this should be easy but I've spent half a day fighting with it!
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3796
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Group Mean as a Vector/Matrix?
maybe @convert to make the group into a matrix and then @cmean to get the means?
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Group Mean as a Vector/Matrix?
That's how I'd do it...
That'll balance the samples for you as well. Use stomna to have the unbalanced samples.
Code: Select all
stom(groupname, matname)
vector cmeans = @cmeans(matname)
delete matname
Return to “General Information and Tips and Tricks”
Who is online
Users browsing this forum: No registered users and 2 guests
