Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

lm-distcomp-test

Language: Layout:
+ ] Show input
Absolute running time: 0.24 sec, cpu time: 0.49 sec, memory peak: 32 Mb, absolute service time: 0,25 sec 
edit mode |  history
          x   y_true        y
1 10.753944 29.50789 27.77910
2 10.603097 29.20619 28.21493
3  7.803954 23.60791 23.02240
4  7.739188 23.47838 23.86190
5  4.406931 16.81386 17.56053
6 11.441147 30.88229 29.95387
          x   y_true        y
1 11.477045 30.95409 30.10904
2  8.970479 25.94096 26.79889
3  6.719637 21.43927 20.75567
4 11.832074 31.66415 31.65345
5  7.465036 22.93007 21.52591
6 11.476496 30.95299 32.34477
[1] "Distributed linear model results:"
[1] "Intercept:  7.77183635600249  Slope:  2.00840909246344"
[1] "Base R linear model on the full data set:"

Call:
lm(formula = y ~ x, data = sim.data3)

Coefficients:
(Intercept)            x  
      7.776        2.008  


    
                
λ
.NET NoSQL database for rapid development