Hello, I have the data whcih are not balanced (several missing observations), and one possibility is t use interpolation method to get the information missing in this series from other series. Does anybody know how I can program interpolation of series1 (which ahs missing observations) and series 2-6, for example. Thanks a lot in advance, Silke
Please do read the posting guide. Please provide self-contained code (e.g. to randomly generate data) and illustrate (e.g. in a small table) what you want to do and also illustrate (with the self-contained code if any) what you currently do so that we know why you fail. After reading your message, I have only a very vague idea of what you are trying to do. You are trying to fill in some data cells in a column with data from some other columns I guess. But how precisely? Best, Daniel sprohl wrote:> > Hello, > > I have the data whcih are not balanced (several missing observations), > and one possibility is t use interpolation method > to get the information missing in this series from other series. > Does anybody know how I can program interpolation of > series1 (which ahs missing observations) and series 2-6, > for example. > Thanks a lot in advance, > Silke > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: http://www.nabble.com/Interpolation-of-data-tp18378381p18380125.html Sent from the R help mailing list archive at Nabble.com.
if it is a time series the interpolation methods in zoo are an option. On Thu, Jul 10, 2008 at 6:41 AM, Daniel Malter <daniel@umd.edu> wrote:> > Please do read the posting guide. Please provide self-contained code (e.g. > to > randomly generate data) and illustrate (e.g. in a small table) what you > want > to do and also illustrate (with the self-contained code if any) what you > currently do so that we know why you fail. After reading your message, I > have only a very vague idea of what you are trying to do. You are trying to > fill in some data cells in a column with data from some other columns I > guess. But how precisely? > > Best, > Daniel > > > > sprohl wrote: > > > > Hello, > > > > I have the data whcih are not balanced (several missing observations), > > and one possibility is t use interpolation method > > to get the information missing in this series from other series. > > Does anybody know how I can program interpolation of > > series1 (which ahs missing observations) and series 2-6, > > for example. > > Thanks a lot in advance, > > Silke > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > > > -- > View this message in context: > http://www.nabble.com/Interpolation-of-data-tp18378381p18380125.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative HTML version deleted]]
Try help.search('interpolate') and help.search('impute') (most of the responses to the latter come from packages that you may not have installed, such as Hmisc) -Don At 8:15 AM +0200 7/10/08, sprohl at na.uni-tuebingen.de wrote:>Hello, > >I have the data whcih are not balanced (several missing observations), >and one possibility is t use interpolation method >to get the information missing in this series from other series. >Does anybody know how I can program interpolation of >series1 (which ahs missing observations) and series 2-6, >for example. >Thanks a lot in advance, >Silke > >______________________________________________ >R-help at r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062
Does this thread solve your problem? -> https://stat.ethz.ch/pipermail/r-help/2007-July/136814.html On 10-Jul-08, at 3:15 AM, sprohl at na.uni-tuebingen.de wrote:> Hello, > > I have the data whcih are not balanced (several missing observations), > and one possibility is t use interpolation method > to get the information missing in this series from other series. > Does anybody know how I can program interpolation of > series1 (which ahs missing observations) and series 2-6, > for example. > Thanks a lot in advance, > Silke > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.