Generate predictions from a temporal discounting binary choice linear model.
Arguments
- object
A temporal discounting binary choice linear model. See
td_bclm
.- newdata
Optionally, a data frame to use for prediction. If omitted, the data used to fit the model will be used for prediction.
- type
The type of prediction required. For
'indiff'
(default) gives predicted indifference points. In this case,newdata
needs only adel
column. For all other values (e.g."link"
,"response"
), this function is just a wrapper topredict.glm()
.- ...
Additional arguments passed to predict.glm if type !=
'indiff'
.
See also
Other linear binary choice model functions:
td_bclm()
Examples
if (FALSE) { # \dontrun{
data("td_bc_single_ptpt")
mod <- td_bclm(td_bc_single_ptpt, model = 'hyperbolic.1')
indiffs <- predict(mod, newdata = data.frame(del = 1:100), type = 'indiff')
} # }