I dont quite understand the answer given in
[https://stats.stackexchange.com/questions/63189/order-of-variables-in-r-lm-model][1]
In lm function of R (and generally formulas) why changing the order of variable matters? My own guess is that the model first calculates the effect of first variable, and then uses the second variable for remaining variation in dependent variable and so on.
    
    set.seed(1)
    a= seq (1:100)+rnorm(100, sd=5)
        b= seq (0.01:0.99, by=0.01)+rnorm(100, sd=3)/100
        c= seq(1:100)+rnorm(100, sd=3)
        d= seq(1:100)+rnorm(100, sd=3)
        summary(lm(a~c+b+d))
        summary(lm(a~b+c+d))


  [1]: https://stats.stackexchange.com/questions/63189/order-of-variables-in-r-lm-model