Date: Tue, 4 May 1999 12:40:11 +0100
Reply-To: Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Organization: Crawford Software Consultancy Limited
Subject: Re: Interpolation imputation for missing
Shiansong Li <shiansong@YAHOO.COM> writes
>Hello, all,
>
>How to write SAS to impute missing values by linear interpolation (not
>locf).
>
>Data itpltn;
>obs value;
>1 6
>2 .
>3 .
>4 12
>5 .
>6 11
>
>The output data set should be like this:
>obs value;
>1 6
>2 8
>3 10
>4 12
>5 11.5
>6 11
>
>Thanks in advance.
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
before we repeat the solution from last weeks SAS-L, please would you
explain the statistical context you might use these interpolated values?
--
Peter Crawford (_knowledge_ is a poor substitute for *real* experience,
but they make a great team)
|