Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: RE: filling in missing panel data as a trend line


From   Scott Cunningham <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: filling in missing panel data as a trend line
Date   Sun, 10 Sep 2006 15:03:21 -0400

Jason,

It still seems like linear interpolation via -ipolate- gets you what you need. My understanding of -ipolate- is that it draws a straight line between the two points in time. Here's information about the methods and formula used to calculate the missing observation, drawn verbatim from the Stata 8 manual on -ipolate-:

"The value of y at x is found by finding the closest points (x0,y0) and (x1,y1),such that x0<x and x1>x, where y0 and y1 are observed, and calculating

y=(y1-y0)/(x1-x0) * (x-x0) + y0


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index