r - Extracting coefficients from a regression 1 model with 1 predictor -
i have following regression model: > print(summary(step1)) call: lm(formula = model1, data = newdat1) residuals: min 1q median 3q max -2.53654 -0.02423 -0.02423 -0.02423 1.71962 coefficients: estimate std. error t value pr(>|t|) (intercept) 0.3962 0.0532 7.446 2.76e-12 *** i2 0.6281 0.0339 18.528 < 2e-16 *** i following returned data frame: estimate std. error t value pr(>|t|) i2 0.6281 0.0339 18.528 < 2e-16 i have following code: > results1<-as.data.frame(summary(step1)$coefficients[-1,drop=false]) which yields: > results1 summary(step1)$coefficients[-1, drop = false] 1 6.280769e-01 2 5.320108e-02 3 3.389873e-02 4 7.446350e+00 5 1.852804e+01 6 2.764...