| neuralnet_response_model | R Documentation |
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
)
response.formula |
formula for response variable and covariates (y ~ x) |
exp.data |
|
neuralnet.compliers |
|
compl.var |
string of compliance variable |
algorithm |
neural network algorithm, default set to |
|
vector specifying hidden layers and number of neurons. | |
act.fct |
"logistic" or "tanh activation function. |
err.fct |
"sse" for sum of squared errors or "ce" for cross-entropy. |
linear.output |
logical for whether output (outcome variable) is linear or not. |
stepmax |
maximum number of steps for training model. |
trained response model object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.