dailylog 9-21-20

less than 1 minute read

Fix for Ch 8 Trees and Carseats

high_binary = ifelse(Sales <= 8,0,1)
c_df = data.frame(Carseats, high_binary)
high_binary
c_df
tree.carseats=tree(high_binary~.-Sales,data=c_df)
summary(tree.carseats)
plot(tree.carseats)