Hello,
I'm using EViews 7.
I need to create a vector from 3 vectors of different size.
How can I do that?
Thanks!
Danny
Create a vector from 3 vectors of different size
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Create a vector from 3 vectors of different size
A matrix is a rectangle. Conceptually, how do you envisage making one from 3 different sized vectors?
Re: Create a vector from 3 vectors of different size
Gareth,
vec1 is 1x20, vec2 is 1x32 and vec3 is 1x 40
I want to stack vec1, vec2 and vec3 one over another in order to have one big vector.
Can I do that?
Thanks!
vec1 is 1x20, vec2 is 1x32 and vec3 is 1x 40
I want to stack vec1, vec2 and vec3 one over another in order to have one big vector.
Can I do that?
Thanks!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Create a vector from 3 vectors of different size
There's a @vcat function to perform vertical concatenation
Re: Create a vector from 3 vectors of different size
Gareth,
This a function seems to be available only on EViews 8.
Thanks anyway!
This a function seems to be available only on EViews 8.
Thanks anyway!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Create a vector from 3 vectors of different size
Ah, true.
Create a vector of the correct size, then use the matplace function to insert your smaller vectors.
Create a vector of the correct size, then use the matplace function to insert your smaller vectors.
Re: Create a vector from 3 vectors of different size
Great!
It works perfectly!
Thanks a lot!
It works perfectly!
Thanks a lot!
Who is online
Users browsing this forum: No registered users and 2 guests
