r 模拟阿多尼斯

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了r 模拟阿多尼斯相关的知识,希望对你有一定的参考价值。

nsub=30000
nr=nsub
ncol=nsub

dummy_datamatrix <- data.frame(pc1=rnorm(nsub), pc2=rnorm(nsub),studytype=round(runif(nsub)))

distmat <- matrix(rnorm(nsub^2),ncol=nsub,nrow=nsub)


library(vegan)

adon1 <- adonis(distmat~pc1+pc2+studytype,data=dummy_datamatrix,parallel=8)

10000 people = 3.3 g of ram
30k people = 30 g
so ram scales qudratically 
with the number of people.

it said it couldnt allocate a matrix of this size, but i think I have 32 g of ram - either ram being used or r limits somehow

use a grm based on the overlap?

ok seems to top out at 30k people

以上是关于r 模拟阿多尼斯的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu卡死了怎么办?

C学习笔录_01

尼斯DBA毕业典礼回顾丨蔚蓝海岸最闪耀的中国星!

使用 R 的样本数据 [重复]

javascript 亚当对贝尼斯!

专利中的“吉尼斯”记录