随笔分类 -  R programming

R for statistical computing
摘要:# GMM model# 2015/7/22library(mvtnorm)set.seed(1)n1 = 1000n2 = 1000mu1 = c(0,1)mu2 = c(-5,-6)sigma1 = matrix(c(1,.5,.5,2),nrow=2)sigma2 = matrix(c(2,.... 阅读全文
posted @ 2015-07-28 20:05 悟净 阅读(369) 评论(0) 推荐(0)
摘要:转http://stackoverflow.com/questions/1962278/dealing-with-timestamps-in-rYou want the (standard)POSIXttype from base R that can be had in 'compact form... 阅读全文
posted @ 2015-05-23 11:13 悟净 阅读(1435) 评论(0) 推荐(0)
摘要:The paper:Hui Zou, Trevor Hastie, and Robert Tibshirani,Sparse Principal Component Analysis,Journal of computational and Graphical Statistics, 15(2): ... 阅读全文
posted @ 2014-11-05 23:01 悟净 阅读(433) 评论(0) 推荐(0)
摘要:来自统计之都,感谢Ihavenothing(http://cos.name/cn/profile/81532)详情参考:http://cos.name/cn/topic/151358?replies=3#post-3025551 library(showtext)2 setEPS()3 postsc... 阅读全文
posted @ 2014-05-31 20:24 悟净 阅读(1146) 评论(0) 推荐(0)