Description Usage Arguments Details Value References See Also Examples

This function estimates a binary logistic regression model and calculates the corresponding marginal effects.

1 2 |

`formula` |
an object of class “formula” (or one that can be coerced to that class). |

`data` |
the data frame containing these data. This argument must be used. |

`atmean` |
default marginal effects represent the partial effects for the average observation.
If |

`robust` |
if |

`clustervar1` |
a character value naming the first cluster on which to adjust the standard errors. |

`clustervar2` |
a character value naming the second cluster on which to adjust the standard errors for two-way clustering. |

`start` |
starting values for the parameters in the |

`control` |
see |

If both `robust=TRUE`

and `!is.null(clustervar1)`

the function overrides the `robust`

command and computes clustered standard errors.

`mfxest` |
a coefficient matrix with columns containing the estimates, associated standard errors, test statistics and p-values. |

`fit` |
the fitted |

`dcvar` |
a character vector containing the variable names where the marginal effect refers to the impact of a discrete change on the outcome. For example, a factor variable. |

`call` |
the matched call. |

William H. Greene (2008). Econometric Analysis (6th ed.). Prentice Hall, N.Y. pp 770-787.

1 2 3 4 5 6 7 8 9 10 |

```
Loading required package: sandwich
Loading required package: lmtest
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: MASS
Loading required package: betareg
Call:
logitmfx(formula = y ~ x, data = data)
Marginal Effects:
dF/dx Std. Err. z P>|z|
x 0.115348 0.011165 10.332 < 2.2e-16 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
```

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.