# \donttest{
# load datasets
data(exp_data) #experimental data
data(pop_data) #population data
# specify models and estimate PATTC
set.seed(123456)
pattc_neural <- pattc_deepneural(response.formula = support_war ~ age + female +
income + education + employed + married +
hindu + job_loss,
exp.data = exp_data,
pop.data = pop_data,
treat.var = "strong_leader",
compl.var = "compliance",
compl.algorithm = "rprop+",
response.algorithm = "rprop+",
compl.hidden.layer = c(4,2),
response.hidden.layer = c(4,2),
compl.stepmax = 1e+09,
response.stepmax = 1e+09,
ID = NULL,
cluster = NULL,
binary.outcome = FALSE)
print(pattc_neural)
pattc_neural_boot <- pattc_deepneural(response.formula = support_war ~ age + female +
income + education + employed + married +
hindu + job_loss,
exp.data = exp_data,
pop.data = pop_data,
treat.var = "strong_leader",
compl.var = "compliance",
compl.algorithm = "rprop+",
response.algorithm = "rprop+",
compl.hidden.layer = c(4,2),
response.hidden.layer = c(4,2),
compl.stepmax = 1e+09,
response.stepmax = 1e+09,
ID = NULL,
cluster = NULL,
binary.outcome = FALSE,
bootstrap = TRUE,
nboot = 2000)
print(pattc_neural_boot)
# }
Run the code above in your browser using DataLab