I have a datatable (looking like this: https://i.sstatic.net/rdt09.jpg , where I'd like to see how different weekdays affect stock prices. However, when I create use them lm()
function and summary, I get an 'error':
Coefficients: (1 not defined because of singularities) with th row showing only NA's
The formula I used is lm(formula = wd$ewretd ~ fr + mo + tu + we + th)
.
Is there any way to see all the days?