{"type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/ryamada22/","categories":["\u30cf\u30d7\u30ed\u30bf\u30a4\u30d7","\u30b0\u30e9\u30d5","\u6728"],"published":"2011-03-30 17:39:04","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20110330%2F1301474344\" title=\"\u3059\u3079\u3066\u306e\u30cf\u30d7\u30ed\u30bf\u30a4\u30d7\u306f\u4e16\u754c\u306b\uff11\u672c\u3060\u3051\u914d\u5217\u306e\u3068\u304d - ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":"http://www.genome.med.kyoto-u.ac.jp/StatGenet/testRY20110208/plott.jpeg","provider_name":"Hatena Blog","height":"190","author_name":"ryamada22","blog_url":"https://ryamada22.hatenablog.jp/","description":"SNP\u306e\u30cf\u30d7\u30ed\u30bf\u30a4\u30d7\u306f0,1 Nh<-10 # \u67d3\u8272\u4f53\u672c\u6570 Nm<-20 # SNP\u6570 # \u9069\u5f53\u306b\u30cf\u30d7\u30ed\u30bf\u30a4\u30d7\u3092\u4f5c\u308b H<-matrix(sample(c(0,1),Nh*Nm,replace=TRUE),Nh,Nm) \u67d3\u8272\u4f53\u304c\uff12\u672c\u5408\u308f\u3055\u3063\u3066\u30c7\u30a3\u30d7\u30ed\u30bf\u30a4\u30d7\u3092\u4f5c\u308b \u67d3\u8272\u4f53\u306e\u30d7\u30fc\u30eb\u304b\u3089\u30e9\u30f3\u30c0\u30e0\u306b\u30da\u30a2\u3092\u4f5c\u308b\u3068\u305d\u308c\u306fHWE\u4eee\u5b9a ShuffleAndDiploid<-function(h){ Nh<-length(h[,1]) H<-h[sample(1:Nh),] H1<-H[1:(Nh/2),] H2<-H[(Nh/2+1):Nh,] H1+H2 } \u591a\u578b\u6027\u306e\u306a\u3044\u30de\u30fc\u30ab\u30fc\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u4f5c\u3063\u305f\u3089\u2026","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","title":"\u3059\u3079\u3066\u306e\u30cf\u30d7\u30ed\u30bf\u30a4\u30d7\u306f\u4e16\u754c\u306b\uff11\u672c\u3060\u3051\u914d\u5217\u306e\u3068\u304d","url":"https://ryamada22.hatenablog.jp/entry/20110330/1301474344","width":"100%"}