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,newdataneeds only adelcolumn. 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
# \donttest{
data("td_bc_single_ptpt")
mod <- td_bclm(td_bc_single_ptpt, model = 'hyperbolic.1')
#> Warning: glm.fit: fitted probabilities numerically 0 or 1 occurred
indiffs <- predict(mod, newdata = data.frame(del = 1:100), type = 'indiff')
# }