Call: lm(formula = lmformula, data = df, weights = w) Coefficients: (Intercept) x1 x2 x3 13.5524 2.0483 -0.6512 -2.2134