how do I fill missing data? i would like to fill missing data with its recent value. For example, 1 2 3 NA 4 5 becomes 1 2 3 3 4 5.
Are there other options for filling missing data?
fill missing data
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: fill missing data
Interpolation is the standard method (available from the proc menu). It won't do the specific one you want, though. For that you could do something like:
where X is the series that has the missings.
Code: Select all
series xfilled = @recode(x=na, x(-1), x)
-
dagfinnrime
- Posts: 54
- Joined: Sat Oct 11, 2008 9:37 am
- Location: Oslo
- Contact:
Re: fill missing data
Hi,
the following is better as it also handles cases with multiple NAs in a sequence.
Dagfinn
the following is better as it also handles cases with multiple NAs in a sequence.
Code: Select all
series xfilled = @recode(x=na, xfilled(-1), x)Who is online
Users browsing this forum: No registered users and 2 guests
