
薛毅
相逢一醉为前缘
这个作者很懒,什么都没留下…
展开
-
主成分分析
student.pr <- princomp(student, cor = TRUE) summary(student.pr, loadings=TRUE)predict(student.pr)screeplot(student.pr,type="lines")R<-matrix(0, nrow=16, ncol=16, dimnames=list(names, names))for ...转载 2018-03-29 00:01:08 · 794 阅读 · 0 评论 -
因子分析
factor.analy1<-function(S, m){p<-nrow(S); diag_S<-diag(S); sum_rank<-sum(diag_S)rowname<-paste("X", 1:p, sep="")colname<-paste("Factor", 1:m, sep="")A<-matrix(0, nrow=转载 2018-03-29 16:06:38 · 572 阅读 · 0 评论 -
典型相关分析
test<-scale(test)ca<-cancor(test[,1:3],test[,4:6])U<-as.matrix(test[, 1:3])%*% ca$xcoefV<-as.matrix(test[, 4:6])%*% ca$ycoefplot(U[,1], V[,1], xlab="U1", ylab="V1")plot(U[,3], V[,3], xlab=...转载 2018-03-29 16:50:40 · 870 阅读 · 0 评论