Closed amir1m closed 3 years ago
n = 200
df = data.frame(stress = runif(n = n, min = 1, max = 10),
sleep = runif(n = n, min = 1, max = 10),
work = sample(c("YES", "NO"), size = n, replace = TRUE))
lambda = exp(1* df$stress/10 - 2 * (df$sleep - 5)/10 - 1 * (df$work == "NO"))
df$y = rpois(lambda = lambda, n = n)
Hello, Where can I find the Coffee drinking dataset used in section 4.3 on GLM?
Thanks, -Amir