Train model using group exposed to treatment with compliance as binary outcome variable and covariates.
neuralnet_complier_mod(
complier.formula,
exp.data,
treat.var,
algorithm = "rprop+",
hidden.layer = c(4, 2),
ID = NULL,
stepmax = 1e+08
)
trained complier model object
formula for complier variable as outcome and covariates (c ~ x)
data.frame
for experimental data.
string for treatment variable.
string for algorithm for training neural networks.
Default set to the Resilient back propagation with weight backtracking
(rprop+). Other algorithms include backprop', rprop-', 'sag', or 'slr'
(see neuralnet
package).
vector for specifying hidden layers and number of neurons.
string for identifier variable
maximum number of steps.