题目
题目
单项选择题

You have a ts object named my_ts with a frequency of 12. Which R code correctly performs an additive decomposition?

选项
A.my_ts %>% tslm(type = "additive")
B.tsl(my_ts, model = "additive")
C.tslm(my_ts, type = "additive")
D.tslm(my_ts~trend+season)
查看解析

查看解析

标准答案
Please login to view
思路分析
Question restatement: You have a ts object named my_ts with a frequency of 12. Which R code correctly performs an additive decomposition? Option 1: my_ts %>% tslm(type = "additive"). Here, the pipe operator (%) is used to pass my_ts to tslm, but tslm does not take a type argument in this form, and the correct usage for additive seasonality with a ts object requires a formula interface like y ~ tre......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!