Model Responses from all compliers (actual + predicted) in experimental data using neural network.
neuralnet_response_model(
response.formula,
exp.data,
neuralnet.compliers,
compl.var,
algorithm = "rprop+",
hidden.layer = c(4, 2),
act.fct = "logistic",
err.fct = "sse",
linear.output = TRUE,
stepmax = 1e+08
)trained response model object
formula for response variable and covariates (y ~ x)
data.frame of experimental data.
data.frame of compliers (actual + predicted)
from neuralnet_predict.
string of compliance variable
neural network algorithm, default set to "rprop+".
vector specifying hidden layers and number of neurons.
"logistic" or "tanh activation function.
"sse" for sum of squared errors or "ce" for cross-entropy.
logical for whether output (outcome variable) is linear or not.
maximum number of steps for training model.