作业:

1) A plot of data from a time series, which shows a cyclical pattern – please show a time series plot and identify the length of the major cycle.

2) Data from a full factorial or fractional factorial experiment with at least 2 factors – please identify the factors and the dependent variable. It is sufficient to provide me with a small part of the dataset (e.g. 10 records), if the dataset is large.

slides for FFD

kings <- scan("http://robjhyndman.com/tsdldata/misc/kings.dat",skip=3)
kings
kingstimeseries <- ts(kings)
kingstimeseries
# An example is a data set of the number of births per month in New York city, from January 1946 to December 1959
births <- scan("http://robjhyndman.com/tsdldata/data/nybirths.dat")
birthstimeseries <- ts(births, frequency=12, start=c(1946,1))
birthstimeseries
#
souvenir <- scan("http://robjhyndman.com/tsdldata/data/fancy.dat")
souvenirtimeseries <- ts(souvenir, frequency=12, start=c(1987,1))
souvenirtimeseries
#
plot.ts(kingstimeseries)
#
plot.ts(birthstimeseries)
#
plot.ts(souvenirtimeseries)
#
logsouvenirtimeseries <- log(souvenirtimeseries)
plot.ts(logsouvenirtimeseries)
#
library("TTR")
birthstimeseriescomponents <- decompose(birthstimeseries)
birthstimeseriescomponents$seasonal
# get the estimated values of the seasonal component
plot(birthstimeseriescomponents)
#
birthstimeseriescomponents <- decompose(birthstimeseries)
birthstimeseriesseasonallyadjusted <- birthstimeseries - birthstimeseriescomponents$seasonal
plot(birthstimeseriesseasonallyadjusted)

  

#tell where the data come from
datafilename="http://personality-project.org/R/datasets/R.appendix1.data"
#read the data
data.ex1=read.table(datafilename,header=T)
#do the analysis
aov.ex1 = aov(Alertness~Dosage,data=data.ex1)
#show the table
summary(aov.ex1)# 2-way
datafilename="http://personality-project.org/r/datasets/R.appendix2.data"
#read the data
data.ex2=read.table(datafilename,header=T)
#show the data
data.ex2
#do the analysis
aov.ex2 = aov(Alertness~Gender*Dosage,data=data.ex2)
#show the summary table
summary(aov.ex2)

后面贴答案  

转载于:https://www.cnblogs.com/leezx/p/10716876.html

time series 时间序列 | fractional factorial design 部分要因试验设计相关推荐

  1. Mathematics English Vocabulary (Cited)

    一般词汇 数学 mathematics, maths(BrE), math(AmE) 公理 axiom 定理 theorem 计算 calculation 运算 operation 证明 prove ...

  2. 数学专业英语词汇英汉对照

    数学专业英语词汇英汉对照 A absolute value 绝对值 accept 接受 acceptable region 接受域 additivity 可加性 adjusted 调整的 altern ...

  3. 三因子两水平doe_DOE试验设计案例

    DOE试验设计,一种安排实验和分析实验数据的数理统计方法:试验设计主要对试验进行合理安排,以较小的试验规模(试验次数).较短的试验周期和较低的试验成本,获得理想的试验结果以及得出科学的结论. 从本质上 ...

  4. UA MATH571B 2K析因设计 SAS实践 分数2k析因设计

    UA MATH571B 2K析因设计 SAS实践 分数2k析因设计 试验数据的定性分析 试验数据的定量分析 这是2016年五月QE第三题.这道题的背景是1988年发在Journal of qualit ...

  5. 创意产品 分析_使用联合分析来发展创意

    创意产品 分析 Advertising finds itself in a tenacious spot these days serving two masters: creativity and ...

  6. MATLAB统计与回归

    11.1 前言 統計的技巧與資料分析常常形影不離.一般統計使用加法.累加法.平均值,中間值等等,由於處理的對象是矩陣資料,故其基本統計之技巧已經廣為應用,其觀念也會在正常之運作中出現.統計學中比較特殊 ...

  7. 应用统计学与R语言实现学习笔记(八)——方差分析

    Chapter 8 ANOVA 本篇是第八章,内容是方差分析.前一段考试,汇报,作业.忙不过来,停更了一段时间,现在重新开始更这一部分内容.方差分析是很多实验的基础以及很重要的分析手段,这一章内容相比 ...

  8. r语言算巢式设计方差分析_R语言中的方差分析方法汇总

    方差分析,是统计中的基础分析方法,也是我们在分析数据时经常使用的方法.下面我总结一下R语言如何对常用的方差分析进行操作. 1. 方差分析的假定 上面这个思维导图,也可以看出,方差分析有三大假定:正态, ...

  9. R语言—方差分析和多重比较

    版权声明:本文为CSDN博主「育种数据分析之放飞自我」的原创文章,遵循CC 4.0 BY-SA版权协议,转载附上原文出处链接及本声明. 原文链接:https://blog.csdn.net/yijia ...

最新文章

  1. “勤奋”,是能让你走出低谷最有效的方法
  2. 创建三维建筑可视化和虚拟现实的最快和最简单的方法
  3. centos 6.4 更新163源
  4. hibernate SQL查询COUNT函数
  5. 题目1025:最大报销额
  6. 云计算的8个常见用途
  7. php 修改密码提示,修改密码通知
  8. 安装JavaFX Scene Builder 到Eclipse
  9. mysql 测试 缓存_mysql 缓存开启及测试
  10. RequestsLibrary库入门介绍
  11. Docker容器实现原理及容器隔离性踩坑介绍
  12. 深度学习 --- 优化入门六(正则化、参数范数惩罚L0、L1、L2、Dropout)
  13. 台式计算机配置清单及价格,电脑主机配置清单及价格(台式组装机电脑配置清单)...
  14. excel下拉公式保持一些参数不变
  15. 动态范围控制(DRC)简介
  16. C++-点到点、点到线、共线等常用计算
  17. matlab自带的优化工具箱,MATLAB 自带优化工具箱(optimization Tool)之遗传算法简述...
  18. CUDA编程——GPU架构,由sp,sm,thread,block,grid,warp说起
  19. 互联网职场中95后女程序员有哪些兴趣爱好?
  20. 动态规划之子序列以及子数组类型的问题

热门文章

  1. Asp.net MVC模型数据验证扩展ValidationAttribute
  2. Codeforces 600E Lomsat gelral (树上启发式合并)
  3. HDU 2204 Eddy's爱好(容斥原理)
  4. 设计模式笔记(7)---适配器模式(结构型)
  5. 一个拆分使用的存储过程例子
  6. iphone开发如何隐藏各种bar
  7. RUNOOB python练习题1
  8. 高可用性、负载均衡的mysql集群解决方案
  9. 18款 非常实用 jquery幻灯片图片切换
  10. PHP的SESSION使用,文件上传下载等