由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - R: time series contains internal NAs
相关主题
时间序列分析有关的具体实现问题线性回归中的trace从哪里来的?
如何用电子营销数据预测销售Interview时应该怎样描述自己做过的Project?
可以同时fit time series model 和linear regression 吗?proc x11
how to analyze small sample time series dataSeasonal adjustment -- anybody used X11/X12?
which model is better for Daily Forecast (time series)A SAS problem
请教用R做factor analysis[合集] 问个概率问题
R:如何从vector中挑出单一元素in =option的一道题
请教:为啥ANOVA需要cosntant variance?title statement
相关话题的讨论汇总
话题: nas话题: series话题: time话题: contains话题: internal
进入Statistics版参与讨论
1 (共1页)
S*******e
发帖数: 525
1
I tried to use R to decompose time series into Seasonal, Trend... but my
time series has some missing data. So it will produce
Error in na.omit.ts(x) : time series contains internal NAs
Any easy way to work around the problem?
w**********y
发帖数: 1691
2
try to use xts. Much more ore convenient.
(x = as.ts(1:5))
x[3] = NA
## na.omit.ts(x)
(x = xts(x,Sys.Date()+1:5))
na.omit(x)
na.locf(x)
S*******e
发帖数: 525
3
Thanks a lot. Could you help understand the following chart:
http://blog.magicbeanlab.com/data-viz/decomposing-time-series-d
Why do the trend and random components seem to be shorter than other two
components ? 这个算法不能得到最早和最晚时间段的趋势和随机部分吗?
Thanks again.

【在 w**********y 的大作中提到】
: try to use xts. Much more ore convenient.
: (x = as.ts(1:5))
: x[3] = NA
: ## na.omit.ts(x)
: (x = xts(x,Sys.Date()+1:5))
: na.omit(x)
: na.locf(x)

1 (共1页)
进入Statistics版参与讨论
相关主题
title statementwhich model is better for Daily Forecast (time series)
为什么有些函数在我的R中无法执行呢?请教用R做factor analysis
[合集] 两个SAS问题R:如何从vector中挑出单一元素
SAS base question请教:为啥ANOVA需要cosntant variance?
时间序列分析有关的具体实现问题线性回归中的trace从哪里来的?
如何用电子营销数据预测销售Interview时应该怎样描述自己做过的Project?
可以同时fit time series model 和linear regression 吗?proc x11
how to analyze small sample time series dataSeasonal adjustment -- anybody used X11/X12?
相关话题的讨论汇总
话题: nas话题: series话题: time话题: contains话题: internal