Hi all,
Suppose i have the following fictional df:
df <- data.frame(
Company = rep(LETTERS[1:10], each = 10),
Year = rep(2010:2019, times = 10),
Var1 = runif(100, -1, 1),
Var2 = runif(100, -1, 1),
Var3 = runif(100, -1, 1),
Var4 = runif(100, -1, 1),
Var5 = runif(100, -1, 1)
)summary(ls1 <- lm(Var1 ~ Var2 + Var3 + Var4 + Var5, data=df))
I want to test whether the coefficient of Var 3 significantly is different from zero at significance level of pvalue of 0.01 , or if it not (so equal to 0). If it is different from zero, i would like to know whether the coefficient is then > 0 or < 0.
Moreover, i want to test whether also whether the coefficient of Var5 bigger or smaller than the coefficient of Var4 at a level of 0.01, or whether the coefficient of Var5 does not differ significantly from the coefficient from Var4 (so Var5 = Var4 at significance level of P value < 0.01).
Any help would be highly appreciated. I am still new to R so i do not understand this completely.