Description Usage Arguments Details Value Author(s) Examples
For objects of class glm
, it calculates the change the average
predicted probability (like the one calculated by glmChange2
) for a
hypothetical candidate set of values of a covariate.
1 2 3 4 5 6 7 8 9 10 11 |
obj |
A model object of class |
varname |
Character string giving the variable name for which average effects are to be calculated. |
data |
Data frame used to fit |
R |
Number of simulations to perform. |
nvals |
Number of evaluation points at which the average probability will be calculated. |
level |
Scalar giving the confidence level of the point-wise confidence intervals. |
ciType |
Type of confidence interval to be created. If |
return |
Character string indicating what should be returned. Multiple entries are supported. |
... |
Other arguments to be passed down to |
The function plots the average effect of a model covariate, for objects of
class glm
. The function does not work with poly
unless the
coefficients are provided as arguments to the command in the model (see
example below).
A plot or a data frame
Dave Armstrong
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.