search for: frankvb

Displaying 2 results from an estimated 2 matches for "frankvb".

Did you mean: frankvw
2010 Jun 15
2
Integration problem: error in invoking an outside function
Dear all, Currently I am trying to integrate a function which depends on four variables, two of which are given, one is given in the integrate function, so there is one variable to integrate on. The code is as follows: Pmatrix = function(th) { P = matrix(nrow=6, ncol=6, data=0) P[1,1] = P[2,1]=P[3,2]=P[4,3]=P[5,4]=P[6,5]= exp(-th) P[,6] = 1-exp(-th) return(P)} lim.verd =
2010 May 04
1
Extract rows with non-zero elements
Dear all, In my dataset I have 12 columns and 5824 rows. The second column contains information about the height of a claim: it might be zero or positive. I would like to do an analysis on the positive part of this matrix, but I do need the other colums with this. So if there are like 1000 rows where the second column is positive, I would like to extract this 1000x13 matrix into another matrix.