[][src]Macro peroxide::lm

macro_rules! lm {
    ( $y:tt ~ $x:tt ) => { ... };
}

R like lm

Caution

Should use single token to use this macro

Examples

extern crate peroxide;
use peroxide::*;

let a = matrix!(1;5;1, 5, 1, Col);
let b = matrix(c!(3.7, 4.2, 4.9, 5.7, 6.0), 5, 1, Col);

assert_eq!(lm!(b ~ a), matrix(c!(3.0700, 0.6100), 2, 1, Col));