I have a dataset where I want to predict a continuous variable (Inflow
), using binary independent variables, that only take values 0 or 1.
I used a linear model using R. However, my R2
is way too low. Does this mean my model is not good enough to predict the inflow? Are there other methods, preprocessing or models that would help me get a higher R2
?
Also could you help me interpret the model results?
Data
Inflow Friday Language Reality Minage0 Same_year_release
<int> <int> <int> <int> <int> <int>
1 239 0 0 0 0 1
2 6 0 0 0 1 0
3 75 0 0 0 0 0
4 63 0 0 1 0 0
5 35 0 0 0 0 0
6 7 0 0 0 1 0
7 4 0 0 0 1 0
8 1 0 0 0 1 0
9 33 0 0 0 0 0
10 155 0 0 0 0 0
# ... with 90 more rows
Model
model_lm = lm(formula = Inflow ~ Friday + Language + Reality + Minage0 +
Same_year_release, data = inflow_data_tbl)
Model Summary
Residuals:
Min 1Q Median 3Q Max
-4219 -496 -6 395 80495
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 23.14 107.01 0.216 0.82885
Friday 793.41 217.37 3.650 0.00027 ***
Language 595.23 174.88 3.404 0.00068 ***
Reality 2422.87 460.58 5.260 1.62e-07 ***
Minage0 -415.90 141.45 -2.940 0.00332 **
Same_year_release 911.92 167.51 5.444 5.96e-08 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 2853 on 1716 degrees of freedom
Multiple R-squared: 0.06046, Adjusted R-squared: 0.05773
F-statistic: 22.09 on 5 and 1716 DF, p-value: < 2.2e-16