Skip to content

Commit

Permalink
causal effects
Browse files Browse the repository at this point in the history
  • Loading branch information
drizopoulos committed Jan 19, 2024
1 parent 21476c5 commit d4a6226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Development/CI/causal_effects.R
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ marginal_causal_effect <-
t0 = 3, Dt = 2, extra_objects = "dummy", B = 5,
calculate_CI = TRUE)

marginal_causal_effect

#--------------------------------------
# Marginal-Conditional Causal Effects -
Expand Down Expand Up @@ -192,6 +193,7 @@ last <- with(Data$newdataL, tapply(serBilir, id, tail, n = 1L))
ids <- names(last)[last > 2]
# we keep only these subjects in the respective datasets in Data
Data$newdataL <- Data$newdataL[Data$newdataL$id %in% ids, ]
Data$newdataL2 <- Data$newdataL2[Data$newdataL2$id %in% ids, ]
Data$newdataE <- Data$newdataE[Data$newdataE$id %in% ids, ]
Data$newdataE2 <- Data$newdataE2[Data$newdataE2$id %in% ids, ]

Expand All @@ -202,4 +204,4 @@ mc_causal_effect <-
t0 = 3, Dt = 2, extra_objects = "dummy", B = 5,
calculate_CI = TRUE)


mc_causal_effect

0 comments on commit d4a6226

Please sign in to comment.