library(dplyr) load("../simulation/simu_qte.Rdata")
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
We conducted simulation studies to verify the validity of the proposed IPW and AIPW estimators.
Simulation set up
n = 200
head(db) %>% select(a, x, y, y_obs, event_time, censor_time, obs_time, status, analysis_time) %>% knitr::kable(digits = 3)
The calculation is within each treatment group
glm(a ~ x, family = "binomial", data = db)
survfit(Surv(obs_time, 1 - status) ~ 1, data = db)
and calculate the probability at the minimal of obs_time
and analysis_time
lm(y_obs ~ x, data = db)
f_q
db$y_mean <- predict(fit_lm_obs, newdata = db) db$y_sigma <- summary(fit_lm_obs)$sigma y_std <- (q - db$y_mean)/ db$y_sigma f_q <- pmax(db$rho, pnorm(y_std))
(obs_time > analysis_time) | (obs_time <= analysis_time & status = TRUE)
rho
: Probability subject is deadpct_missing_death
: Percent of subject dead on orbefore analysis time $L$pct_missing_censor
: Percent of subject censored on or before analysis time $L$quantile_all
: quantile ($\xi=0.5$) based on all simulated data (underline truth)quantile_obs
: quantile ($\xi=0.5$) based on all observed dataipw
: results from formula (5)aipw
: results from formula (6)t1 %>% select(- naive) %>% knitr::kable(digits = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.