I use a panel data set. I need to copy some value from cross-section AA to another cross-section AB, but not to any other cross-sections.
So far, I create an auxiliary series TEMP, copy the value from AA to TEMP. However, when I want to copy TEMP to AB it does not work as for the corresponding sample (AB), the series TEMP contains only NAs.
Copy values from cross-section to entire vector
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- EViews Developer
- Posts: 2672
- Joined: Wed Oct 15, 2008 9:17 am
Re: Copy values from cross-section to entire vector
Can you be a bit more specific about what you are doing? What values in AA need to be copied? Is it the value for one date, or values for a range of dates? Are we matching up observations by-date?
Re: Copy values from cross-section to entire vector
I have created a workfile and a codefile which does the required task. However, I assume this approach is way too complicated for what I require.
- Attachments
-
- example.wf1
- (12.29 KiB) Downloaded 270 times
-
- example.prg
- (275 Bytes) Downloaded 278 times
-
- EViews Developer
- Posts: 2672
- Joined: Wed Oct 15, 2008 9:17 am
Re: Copy values from cross-section to entire vector
Code: Select all
series var2a = @meansby(var2, country, date)
Who is online
Users browsing this forum: No registered users and 19 guests