I am wondering how I can create a sample (object) from a series which contains nas before and after the values which I actually want to use.
e.g.:
series:
1/2011: na
2/2011: na
3/2011: 1
4/2011: 2
5/2011: na
6/2011: na
sample 3/2011 till 4/2011:
3/2011: 1
4/2011: 2
'cut' nas from beginning and end of series
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: 'cut' nas from beginning and end of series
Assuming you don't have internal NAs, just do:
Code: Select all
sample mysample if x<>na
Re: 'cut' nas from beginning and end of series
great thank you!
Who is online
Users browsing this forum: No registered users and 2 guests
