search for: maxtrix

Displaying 3 results from an estimated 3 matches for "maxtrix".

Did you mean: matrix
2010 Jun 04
1
Creating a maxtrix from "conditional prints"
Hi guys :) I'm dealing with this problem, perhaps conceptually not that complex, but still - I'm stuck. Two columns, values 1<x<10, only integers. I want to check when the first column's index is identical to the second's (and vice versa). If that's true, I want to add a further column with value 1 (if true) or NA (if false). Thus, I obtain 100 matrices (for each
2009 May 29
5
maxtrix to permutation vector
Hi, Is there a way to convert a matrix into a vector representing all permutations of values and column/row headings with native R functions? I did this with 2 nested for loops and it took about 25 minutes to run on a ~700x700 matrix. I'm assuming there must be a smarter way to do this with R's vector commands, but being new to R, I'm having trouble making it work. Thanks,
2009 Dec 26
2
Question regarding if statement in while loop
...is point - it's a function of the data. My problem is that, as you can see, after eblest runs, the "out" pieces of information are bound together in the results matrix. When the eblest does not run correctly, the loop stops. ?For example, when i=3 and i=4, eblest runs ok, and I get a maxtrix with the following columns: i EBLUP se.EBLUP i EBLUP se.EBLUP 3 ? x ? ? ? ? ? ? y ? ?4 ? a bh ...but when it loops back around to start i=5, I get an error because the solution is singular. But I don't want the loop to stop (I have ~100 of these i's for...