看板 R_Language 關於我們 聯絡資訊
[問題類型]: 程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來) 想用R建立一筆100個發生機率為0.2的二元變項隨機變數 [軟體熟悉度]: 完全新手 [問題敘述]: 如何建立此隨機變數 dbinom(x, 100, 0.2) x的部分不知道要用什麼值 第一步就卡住了 感謝指點 [程式範例]: 程式碼可貼於以下網站: http://ideone.com/ http://codepad.org http://pastie.org/ http://nopaste.info/ http://pastebin.com/ http://paste.plurk.com http://gist.github.com/ http://nopaste.csie.org/ [環境敘述]: 5.3.2 [關鍵字]: -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.230.170.98 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1549183041.A.40A.html
andrew43: rbinom(100, 1, 0.2) 02/03 17:22
ycclpj: Thanks 02/06 21:20