Hi, I'm having trouble finding any examples of how to use linear-model with simple clojure data. As per the documentation it says both x and y can be "vectors of values" so I would think the following would work:
(linear-model [1 2 3 4] [5 4 3 4]) Since the second can also be a matrix, I would think I could also write: (linear-model [1 2 3 4] (matrix [[5 4 3 4] [1 2 1 1]])) However, both of these bits of code throw obscure errors- Nothing I do seem to work. I'm guessing that I am misunderstanding what is meant by a "vector of values" in Incanter and that it has to be in some special Incanter data type- But I can't figure out which one... Could someone toss an Incanter newbie a bone and tell me what I'm missing? Thanks! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.