Regression - How to add a variable that indicates whether the Day is Friday

Viewed 18

I am trying to include a variable in a regression to determine whether the day is Friday. The data set can be found here http://www.statsci.org/data/oz/telecom.txt

I have this code already that runs a regression of Hours on all the variables

tel <- read.csv("tel.csv")

library(psych)
str(tel)
View(tel)
describe(tel)
pairs.panels(tel, gap=0, ellipses=F, pch='.', hist.col='lavender', col="dodgerblue", lwd=2)

set.seed(42)
tel <- tel[sample(1:31),]
tel_train <- tel[1:20,]
tel_test  <- tel[21:31,]


ols_full <- lm(Hours ~ ., data = tel_train)
summary(ols_full)
confint(ols_full)

I am not sure what i can do to proceed.

0 Answers
Related