library(dplyr) load("../simulation/simu_qte_v2.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 = 400
Event indicator: $\delta = T < C$
Missing data: y_obs
in simulated data
y_actual
in simulated data y_actual
= $\min(y) - 1$ if $T < L$ head(db) %>% select(a, x, y, y_obs, y_actual, 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)
oxph(Surv(obs_time, 1 - status) ~ x, 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)
n
: sample size in each grouprho
: 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_y
: quantile ($\xi=0.5$) based on simulated data $Y$. quantile_actual
: quantile ($\xi=0.5$) based on actual data y_actual
(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.