From 18b0a452788ef2b2c328a1d7a7b06c0ed12d0a03 Mon Sep 17 00:00:00 2001 From: Lucy D'Agostino McGowan Date: Fri, 7 Feb 2025 13:21:34 -0500 Subject: [PATCH] Update 06-stats-models-ci.qmd Consider switching the number of users to uniform so you can't have negative numbers? I am resimulating this in class and adding in one where we have a non-linear relationship and plotting it so the negative number of users is a bit glaring. --- chapters/06-stats-models-ci.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/06-stats-models-ci.qmd b/chapters/06-stats-models-ci.qmd index 5a187d2..3960b04 100644 --- a/chapters/06-stats-models-ci.qmd +++ b/chapters/06-stats-models-ci.qmd @@ -331,7 +331,7 @@ Organizations with more users get more updates and have slightly lower satisfact ```{r} satisfaction3 <- tibble( # Number of users - num_users = rnorm(n, mean = 100, sd = 50), + num_users = runif(n, min = 1, max = 500), # Larger customers more likely to have daily updates update_frequency = rbinom(n, 1, plogis(num_users / 100)), # with more users come less satisfaction