Re: [R] Bootstrapping a 11x10 matrix

2013-04-24 Thread Adams, Jean
Herbejie Rose, You could use the boot() function in the R package boot. For example: # example data matrix m <- matrix(sample(11*10), ncol=10) # function to calculate column means for indexed rows of matrix myfun <- function(data, i) { apply(data[i, ], 2, mean) } # 1000 bootstrap samples libra

[R] Bootstrapping a 11x10 matrix

2013-04-23 Thread Herbejie Rose Cuizon
Good evening! This is Herbejie Rose I need your help for me to compute the following: I just want to ask on how to bootstrap a 11x10 matrix to obtain 1000 bootstrap samples and compute the 10 dimensional mean per bootstrap sample. the 11x10 dimension of the matrix has 11 subjects and 10 variable