Generates fitted values, including bootstrap confidence intervals, for in and outofsample data from a fitted polywog model.
1 2 3 
object 
a fitted model of class 
newdata 
an optional data frame containing observations for which fitted values should be computed. If not specified, fitted values are generated for the data used to fit the model. 
type 
specifies whether the fitted values should be generated on the link scale (X β) or in terms of the expected value of the response variable. These only differ for binomial family models. 
interval 
logical: whether to calculate bootstrap confidence intervals for each fitted value. 
level 
confidence level for the intervals. 
bag 
logical: whether to use "bootstrap
aggregation" to generate the main fitted values (if

na.action 
a function specifying what to do with
observations in 
... 
other arguments, currently ignored. 
If interval = TRUE
, a matrix containing each fitted
value and its confidence interval. Otherwise, a vector
containing the fitted values.
Brenton Kenkel and Curtis S. Signorino
For more userfriendly generation of fitted values, see
predVals
. To compute marginal effects, see
margEff.polywog
.
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.