[R] Filling matrix secondary diagonal

2009-08-25 Thread Vaupo
Hi, how do i fill the secondary diagonals of a matrix? Is there an funktion like the "diag" funktion in matlab, where i can specify the diagonal i´d like to fill? -- View this message in context: http://www.nabble.com/Filling-matrix-secondary-diagonal-tp25121745p25121745.html Sent from the R

[R] help with pmvnorm function

2009-08-21 Thread Vaupo
Hi, I´ve got a problem with using the pmvnorm function. For example ,if i assume a bivariate normal distribution with mean=(0,0) and sigma=(1,0.5,0.5,1) how do i generate the probability for X1<=2 and X2<=3 ? -- View this message in context: http://www.nabble.com/help-with-pmvnorm-function-t