討論串重複取樣不放回(不使用sample)
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 7→)留言10則,0人參與, 4年前最新作者siscom (妹控)時間4年前 (2019/10/04 22:37), 4年前編輯資訊
1
0
0
內容預覽:
大家好. 最近在上程式語言的課. 教授請我們跑bootstrap. 但不使用sample的function 而是自己寫function. 條件為. Create a function call my.sample with three arguments:. x:the data to be res
(還有217個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者celestialgod (天)時間4年前 (2019/10/13 18:31), 4年前編輯資訊
0
0
0
內容預覽:
my.sample <- function(x, n, replace = FALSE) {. if (!replace && length(x) < n). stop("The size must be less than the size of x when replace is TRUE.")
(還有321個字)
首頁
上一頁
1
下一頁
尾頁