This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET VARIABLE EXPERIMENT_START_DATE = TIMESTAMP '2024-10-01 00:00:00'; | |
SET VARIABLE EXPERIMENT_END_DATE = TIMESTAMP '2024-10-31 00:00:00'; | |
with prep_cleaned_exposures as ( | |
select distinct | |
userid, | |
treatment, | |
min(exposure_time) over (partition by userid) as exposure_time, | |
(min(treatment) over (partition by userid)) <> (max(treatment) over (partition by userid)) as multiple_exposures |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//library(brms) | |
//library(tidyverse) | |
//x <- rgamma(100, 2, 3) | |
//z <- rbinom(100, 1, 0.2) | |
//y <- x*z | |
//d <- tibble(y=y) | |
OlderNewer