Description Usage Arguments Details Value Author(s) Examples

For objects of class `glm`

, it calculates the change the average predicted probability for a hypothetical candidate set of values of a covariate.

1 | ```
aveEffPlot(obj, varname, data, R=1500, nvals=25, plot=TRUE,...)
``` |

`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. |

`plot` |
Logical indicating whether plot should be returned, or just data (if |

`...` |
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 (UW-Milwaukee, Department of Political Science)

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.