# NOT RUN {
data = simuldata(n = 10000, l = 2, categorical = TRUE)$data
psin_estimate = popsize_cond(data = data, funcname = c("logit", "gam"),
condvar = 'catcov', PLUGIN = TRUE, TMLE = TRUE)
#this returns the plug-in, the bias-corrected and the tmle estimate for the
#two models conditioned on column catcov
# }
Run the code above in your browser using DataLab