[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: linear interpolation
Perhaps -tsfill- would help?
----- Original Message -----
From: Scott Cunningham <firstname.lastname@example.org>
Date: Tuesday, July 25, 2006 3:21 pm
Subject: st: linear interpolation
> I know I need to expand by 31,815 observations (1761 for every
> in the 1980s and 1774 for every year in the 1990s).
> . local N = `_N' + 31815
> . set obs `N'
> obs was 5318, now 31815
> What I'm trying to figure out now is to assign values of a year
> every 1761 observations through the 1980s, then 1774 for every
> in the 1990s. For instance, to do this:
> (where the total is 1,761 for 1981, and the same would be for 82-
> and 1774 per year for 1991-1999). I don't think using what you
> wrote, ". replace year=1975 + _n if year==." will work since I do
> need year increasing with every observation. Does anyone know how
> fill in missing data with such precision?
* For searches and help try: