This function makes predictions from an estimated SIMML, given a (new) set of pretreatment covariates. The function returns a set of predicted outcomes for each treatment condition and a set of recommended treatment assignments (assuming a larger value of the outcome is better).
pred.simml(simml.obj, newX = NULL, newA = NULL, newXm = NULL,
single.index = NULL, type = "link", maximize = TRUE)
a simml
object
a (n-by-p) matrix of new values for the covariates X at which predictions are to be made.
a (n-by-L) matrix of new values for the treatment A at which predictions are to be made.
a (n-by-q) matrix of new values for the covariates associated with the fitted main effect Xm at which predictions are to be made.
a length n vector specifying new values for the single-index at which predictions are to be made; the default is NULL
.
the type of prediction required; the default "response" is on the scale of the response variable; the alternative "link" is on the scale of the linear predictors.
the default is TRUE
, assuming a larger value of the outcome is better; if FALSE
, a smaller value is assumed to be prefered.
a (n-by-L) matrix of predicted values; each column represents a treatment option.
a (n-by-1) vector of suggested treatment assignments
simml
,fit.simml