赞
踩
http://blog.csdn.net/liu7788414/article/details/44488215
x<-ts(1:30,start=c(1900,1),frequency=4)
plot(x,type='l')
axis(1, at = c(1900, 1901, 1902, 1903,1904,1905,1906),labels = expression(1900, 1901, 1902, 1903, 1904,1905,1906))
plot(x)
axis(1, at=1900:1907)
axis(1, at=seq(1900, 1908, by=1/4), labels=FALSE, tcl=-1/4)
x <- c(0:10, 50)
xm <- mean(x)
mean(x, trim = 0.10)
trim就是截断,表示去掉最高和最低的10%。
用vars和urca包。
install.packages("R.matlab")
library(R.matlab)
path <- system.file("mat-files", package="R.matlab")
mat <- readMat(file.path(path, "structLooped.mat"))
s <- mat$s
fields <- dimnames(s)[[1]]
cat("Field names: ", paste(fields, collapse=", "), "\n", sep="");
print(s)
install.packages("qualityTools")
library(qualityTools)
x= rexp(100)
qqPlot(x,"exponential")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。