r - 使用 1 年期间识别季节性
问题描述
我有一个数据集,它代表从 2018 年 12 月起每月订阅的客户数量。我想检查我的数据中是否有海洋性,但是在 R 中出现错误。
Month Subs
1 201812 37551.17
2 201901 42144.39
3 201902 37466.42
4 201903 37568.11
5 201904 35271.50
6 201905 49453.71
7 201906 60640.16
8 201907 59835.07
9 201908 71657.11
10 201909 71911.35
11 201910 57962.19
12 201911 55538.46
13 201912 59423.75
14 202001 62707.65
15 202002 50034.92
在R
我已经完成以下提示时出现以下错误:
> myts <- ts(data = Data$DBRollOver, start =c(2018,12),frequency=12)
> fit <- stl(myts,s.window = "period")
Error in stl(myts, s.window = "period") :
series is not periodic or has less than two periods
有什么建议么?
解决方案
推荐阅读
- jquery - Ajax 搜索栏不适用于 Laravel 8
- gulp - 任务“详细信息”不在您的 gulpfile 中
- php - 如何在 loop-start.php 中显示产品类别标题?
- java - 原因:org.hibernate.QueryException:节点没有数据类型:org.hibernate.hql.internal.ast.tree.MethodNode
- javascript - 有没有办法从 URL.createObjectUrl 获取 nodejs 中的文件?
- python - 如何让 For 循环中的迭代更高效?
- bash - POSIX 等价于 prinf -v
- php - 奏鸣曲管理员自动完成过滤器
- javascript - 模块错误(来自 ./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js
- typescript - Vscode语言服务器自动完成中的外部API请求?