Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • $\begingroup$ It "doesn't work"? What happens? What error messages do you get? What is the str of MatrixA and MatrixB ? What are those matrices? $\endgroup$ Commented Jul 10, 2013 at 23:28
  • $\begingroup$ I added the error message I get. Is that because of the NAs? Removing NAs in MatrixA and 0's in MatrixB (which is equivalent) does not yield matrices of the same dim. The str of both is '46175 obs. of 741 variables: with all integers. $\endgroup$ Commented Jul 10, 2013 at 23:37
  • $\begingroup$ Why not just plot the distributions of B for A = 0, 1, 2, NA side by side? $\endgroup$ Commented Jul 11, 2013 at 0:57
  • $\begingroup$ The data is too big to plot(MatrixA, MatrixB). I get a "Error in plot.new() : figure margins too large" returned. How would you suggest I plot the distributions? Just a histogram? $\endgroup$ Commented Jul 11, 2013 at 9:49