- ...
ignored. Included to require named input.
- model
An object of class formula
. The symbolic description
of the model to be fitted. If the regression method specified in
solver.method accepts as input a formula
object,
model is passed to the solver.method function. If the regression method
instead accepts a matrix of covariates as the model to fit, model
is
used to obtain the model matrix that is passed to the solver.method
function.
- solver.method
An object of class character
. The name of
the R function to be used to obtain parameter estimates, e.g., 'lm',
'glm', or 'rpart'. The specified function MUST have a
corresponding predict method, which can be the generic predict() function.
- solver.args
An object of class list
. Additional arguments
to be sent to the function specified in solver.method. This
argument must be provided as a named list, where the name of each element
matches a formal argument of the function specified in
solver.method. For example, if a logistic regression using
'glm' is desired,
solver.method = "glm"
solver.args = list("family"=binomial)
See Details section for further information.
- predict.method
An object of class character
. The name of
the R function to be used to obtain predictions, e.g., 'predict.lm',
'predict', or 'predict.glm'. If no function is explicitly
given, the generic predict()
is assumed. For many regression
methods, the generic predict()
method is appropriate.
- predict.args
An object of class list
. Additional arguments
to be sent to the function specified in predict.method. This
argument must be provided as a named list, where the name of each
element matches a formal argument of the function specified in
predict.method. For example, if a logistic regression using
'glm' was used to fit the model and predictions on the scale of the
response are desired,
predict.method = "predict.glm"
predict.args = list("type"="response").
See Details section for further information.
- dp
An object of class integer
. The decision point for which
this model and subset are defined.
- subset
An object of class character
. A nickname for the
subset for which model and methods are to be used. This argument will
be used by the methods of DynTxRegime to "link" input arguments.
In the event that a model is to be fit using more than 1 subset,
collapse the subset names into a single character string separating
each with a comma. For example, if the model is to be fit using patients
in both subsets "a" and "b," the subset nickname should be "a,b" (no space).