I want to get the direction of association from a linear model (beta value) using the "lm" function in R. How do I get that? I've used the following:
m <- lm( X ~ Y )
s <- summary(m)
When I print the output of summary(m) I get this:
Call:
lm(formula = X ~ Y)
Residuals:
Min 1Q Median 3Q Max
-0.077047 -0.009917 0.001262 0.010990 0.031181
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 0.9449522 0.0009249 1021.715 <2e-16 ***
Y -0.0004059 0.0015299 -0.265 0.791
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 0.01494 on 351 degrees of freedom
(6 observations deleted due to missingness)
Multiple R-squared: 0.0002005, Adjusted R-squared: -0.002648
F-statistic: 0.07039 on 1 and 351 DF, p-value: 0.7909
Which of these parameters corresponds to beta (direction of association between X and Y? Thanks,