注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
本帖最后由 Elva_1218 于 2020-1-15 15:04 编辑 . 1point3acres.com
这是我的部分数据,因为function在老师电脑里跑出来了,但是我用自己的电脑或者学校的电脑都没有跑出来(windows和mac也都试了),所以想用小一点的数据再多试一些电脑看看有没有能跑出来的。(老师的电脑好像不是windows的). .и
package的网址是 https://msbi.ipb-halle.de/msbi/spCCA/
- .
- library("spCCA")
- a=c(-0.3200379, -0.7138482, -0.8628071, -0.3220143, -0.7079053, -0.9425601, -0.5555740, -0.6663740. check 1point3acres for more.
- ,-0.3187421, -0.6880427, -0.8462656, -0.3896728, -0.6960597, -0.8978755, -0.6301385, -0.6601400
- ,-0.3155027, -0.6688058, -0.8533548, -0.3591386, -0.6960597, -0.9299319, -0.5860085, -0.6705301
- ,-0.3232774, -0.7035260, -0.8423271, -0.3876957, -0.6207557, -0.9066182, -0.6057909, -0.6466329
- ,-0.3009251, -0.7082179, -0.8407517, -0.3433223, -0.5564513, -0.8852473, -0.4992702, -0.6393599)
- otu=matrix(as.matrix(a),ncol=8,byrow = T)
- . ----
- b=c(-0.25689597, -0.06583109, -0.3033692, -0.3399333, -0.7319339, -0.9358452, -0.2598252, -0.5081042, 0.3327363
- ,1.23534007, 0.05640615, -0.1568638, -0.7552671, -0.5885719, -0.7014474, -1.2953496, 1.0138803, -0.3383102
- ,0.04242789, -0.93063372, -0.5611901, -0.7552671, -0.1826920, -0.9036287, -0.8488069, -0.1787369, -0.9554043
- ,-1.05511977, -0.93063372, -0.1299876, -0.7552671, 0.9990045, -0.9358452, 1.7862043, -0.3545300, -0.9554043
- ,0.93774108, 1.68284446, 0.2460916, 0.5018554, -0.1561209, 1.0407578, 0.9984070, 0.3147964, 1.3159508
- ,2.4942030 ,0.8819917 ,-0.4450216 ,-0.8208717 ,3.1181910)
- met=matrix(as.matrix(b),nrow=5,byrow = T)
- c=c( -1.0640955 , -0.6968215 , -0.7317029
- , 0.9329057 , -0.6968215 , 1.3566992
- , -1.0640955 , -0.6968215 , -0.7317029
- ,-1.0640955 , -0.6968215 , -0.7317029
- ,-1.0640955 , 1.4246128 , -0.7317029)
- zz=matrix(as.matrix(c),nrow=5,byrow = T)
- getCCA3(otu,met,zz)
复制代码 . Χ
我的结果是空的,没有error也没有warning,只是是空的。
- $`cc3.weight.x`
- [1,].1point3acres
- [2,]
- [3,]
- [4,]
- [5,]
- [6,]
- [7,]. check 1point3acres for more.
- [8,]
- $cc3.weight.y
- .1point3acres
- [1,]
- [2,]
- [3,]
- [4,]. 1point 3 acres
- [5,]
- [6,]
- [7,]
- [8,]
- [9,]
- [10,]. From 1point 3acres bbs
- $cc3.weight.z
- [1,]
- [2,]
- [3,]
- $cc3.CV.x
- . 1point 3acres
- [1,]
- [2,]
- [3,]
- [4,]
- [5,].google и
- $cc3.CV.y
- . 1point 3acres
- [1,]. Waral dи,
- [2,]
- [3,]
- [4,]
- [5,]
- $cc3.CV.z
- [1,]
- [2,]
- [3,]
- [4,].
- [5,]
- . 1point 3acres
- $corr
- NULL
- $lambda
- [1,]
- [2,]
- [3,]
- $num.CV
- [1] 10
复制代码
|