Re: [R] how to calculate a table

2010-04-12 Thread Dieter Menne
Bernd Dittmann wrote: (Sample boot code see below) ... So far so good. But how can I bring it into table-form whereby the combination of all 10 different weights (setting steps as 1) and their respective bootstrapped means are printed: weights mean.boot 1

[R] how to calculate a table

2010-04-11 Thread Bernd Dittmann
Hi R-Group, I am stuck with the following problem: I am constructing a portfolio of 2 variables x and y x - rnorm(100, mean=100, sd=4) y - rnorm(100, mean=120, sd=10) which I am combining as follows to a portfolio for sampling purposes: portfolio - c(rep(x, 8), rep(y, 2)) In this case I have