Skip to content

Commit d911491

Browse files
committed
Coefficients and Intercepts
1 parent 2c09112 commit d911491

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

dayThree.R

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Intepreting the models. Also, determining if the input(s) do have strong relationship with the output.
2+
# Coefficient - Shows the strength of the relationship between input(s) and output values
3+
4+
library(tidyverse)
5+
library(boot)
6+
hard_drives <- read_csv("Data/dayThree/harddrive.csv", n_max = 100000)
7+
8+
# Hard Drives
9+
# Could we predict how likely a hard drive will fail?
10+
# In the column failure: 1 = hard drive failed, 0 = hard drive didn't fail
11+
model <- glm(failure ~ smart_1_normalized, data = hard_drives, family = "binomial")
12+
glm.diag.plots(model)
13+
summary(model)
14+
ggplot(hard_drives, aes(smart_1_normalized, failure)) + geom_point() + geom_smooth(method = "glm", method.args = list(family = "binomial"))
15+
16+
#cameras dataset

0 commit comments

Comments
 (0)