mfx: Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs

Size: px
Start display at page:

Download "mfx: Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs"

Transcription

1 mfx: Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs Fernihough, A. mfx: Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs Document Version: Publisher's PDF, also known as Version of record Queen's University Belfast - Research Portal: Link to publication record in Queen's University Belfast Research Portal General rights Copyright for the publications made accessible via the Queen's University Belfast Research Portal is retained by the author(s) and / or other copyright owners and it is a condition of accessing these publications that users recognise and abide by the legal requirements associated with these rights. Take down policy The Research Portal is Queen's institutional repository that provides access to Queen's research output. Every effort has been made to ensure that content in the Research Portal does not infringe any person's rights, or applicable UK laws. If you discover content in the Research Portal that you believe breaches copyright or violates any law, please contact openaccess@qub.ac.uk. Download date:03. Sep. 2018

2 Package mfx July 2, 2014 Type Package Title Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs Version 1.1 Date Author Alan Fernihough Maintainer Alan Fernihough Estimates probit, logit, Poisson, negative binomial, and beta regression models, returning their marginal effects, odds ratios, or incidence rate ratios as an output. License GPL-2 GPL-3 Depends stats, sandwich, lmtest, MASS, betareg NeedsCompilation no Repository CRAN Date/Publication :45:05 R topics documented: betamfx betaor logitmfx logitor negbinirr negbinmfx poissonirr poissonmfx probitmfx Index 14 1

3 2 betamfx betamfx Marginal effects for a beta regression. This function estimates a beta regression model and calculates the corresponding marginal effects. betamfx(,, atmean = TRUE, = FALSE, = NULL, = NULL, = betareg.(), link.phi = NULL, type = "ML") atmean link.phi type default marginal effects represent the partial effects for the average observation. If atmean = FALSE the function calculates average partial effects. a list of arguments specified via betareg.. as in the betareg function. as in the betareg function. The underlying link function in the mean model (mu) is logit. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. mfxest dcvar the ted betareg object. 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. the matched.

4 betaor 3 References Francisco Cribari-Neto, Achim Zeileis (2010). Beta Regression in R. Journal of Statistical Software 34(2), Bettina Gruen, Ioannis Kosmidis, Achim Zeileis (2012). Extended Beta Regression in R: Shaken, Stirred, Mixed, and Partitioned. Journal of Statistical Software, 48(11), betaor, betareg # simulate some # beta outcome y = rbeta(n, shape1 = plogis( * x), shape2 = (abs(0.2*x))) # use Smithson and Verkuilen correction y = (y*(n-1)+0.5)/n =.frame(y,x) betamfx(y~x x, =) betaor Odds ratios for a beta regression. This function estimates a beta regression model and calculates the corresponding odds ratios. betaor(,, = FALSE, = NULL, = NULL, = betareg.(), link.phi = NULL, type = "ML") link.phi type a list of arguments specified via betareg.. as in the betareg function. as in the betareg function.

5 4 logitmfx The underlying link function in the mean model (mu) is "logit". If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. oddsratio the ted betareg object. the matched. References Francisco Cribari-Neto, Achim Zeileis (2010). Beta Regression in R. Journal of Statistical Software 34(2), Bettina Gruen, Ioannis Kosmidis, Achim Zeileis (2012). Extended Beta Regression in R: Shaken, Stirred, Mixed, and Partitioned. Journal of Statistical Software, 48(11), betamfx, betareg # simulate some # beta outcome y = rbeta(n, shape1 = plogis( * x), shape2 = (abs(0.2*x))) # use Smithson and Verkuilen correction y = (y*(n-1)+0.5)/n =.frame(y,x) betaor(y~x x, =) logitmfx Marginal effects for a logit regression. This function estimates a binary logistic regression model and calculates the corresponding marginal effects.

6 logitmfx 5 logitmfx(,, atmean = TRUE, = FALSE, = NULL, = NULL, start = NULL, = list()) atmean start default marginal effects represent the partial effects for the average observation. If atmean = FALSE the function calculates average partial effects. starting values for the parameters in the glm model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. mfxest dcvar the ted glm object. 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. the matched. References William H. Greene (2008). Econometric Analysis (6th ed.). Prentice Hall, N.Y. pp logitor, glm

7 6 logitor # simulate some # binary outcome y = ifelse(pnorm( *x + rnorm(n))>0.5, 1, 0) =.frame(y,x) logitmfx(=y~x, =) logitor Odds ratios for a logit regression. This function estimates a binary logistic regression model and calculates the corresponding odds ratios. logitor(,, = FALSE, = NULL, = NULL, start = NULL, = list()) start starting values for the parameters in the glm model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. oddsratio the ted glm object. the matched.

8 negbinirr 7 logitmfx, glm # simulate some # binary outcome y = ifelse(pnorm( *x + rnorm(n))>0.5, 1, 0) =.frame(y,x) logitor(=y~x, =) negbinirr Incidence rate ratios for a negative binomial regression. This function estimates a negative binomial regression model and calculates the corresponding incidence rate ratios. negbinirr(,, = FALSE, = NULL, = NULL, start = NULL, = glm.()) start starting values for the parameters in the glm.nb model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors.

9 8 negbinmfx irr the ted glm.nb object. the matched. negbinmfx, glm.nb # simulate some y = rnegbin(n, mu = exp( * x), theta = 0.5) =.frame(y,x) negbinirr(=y~x,=) negbinmfx Marginal effects for a negative binomial regression. This function estimates a negative binomial regression model and calculates the corresponding marginal effects. negbinmfx(,, atmean = TRUE, = FALSE, = NULL, = NULL, start = NULL, = glm.()) atmean start default marginal effects represent the partial effects for the average observation. If atmean = FALSE the function calculates average partial effects. starting values for the parameters in the glm.nb model. see glm..

10 poissonirr 9 If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. mfxest dcvar the ted glm.nb object. 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. the matched. negbinirr, glm.nb # simulate some y = rnegbin(n, mu = exp( * x), theta = 0.5) =.frame(y,x) negbinmfx(=y~x,=) poissonirr Incidence rate ratios for a Poisson regression. This function estimates a negative binomial regression model and calculates the corresponding incidence rate ratios. poissonirr(,, = FALSE, = NULL, = NULL, start = NULL, = list())

11 10 poissonirr start starting values for the parameters in the glm model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. irr the ted glm object. the matched. poissonmfx, glm # simulate some y = rnegbin(n, mu = exp( * x), theta = 0.5) =.frame(y,x) poissonirr(=y~x,=)

12 poissonmfx 11 poissonmfx Marginal effects for a Poisson regression. This function estimates a Poisson regression model and calculates the corresponding marginal effects. poissonmfx(,, atmean = TRUE, = FALSE, = NULL, = NULL, start = NULL, = list()) atmean start default marginal effects represent the partial effects for the average observation. If atmean = FALSE the function calculates average partial effects. starting values for the parameters in the glm model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors. mfxest dcvar the ted glm object. 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. the matched. poissonirr, glm

13 12 probitmfx # simulate some y = rnegbin(n, mu = exp( * x), theta = 0.5) =.frame(y,x) poissonmfx(=y~x,=) probitmfx Marginal effects for a probit regression. This function estimates a probit regression model and calculates the corresponding marginal effects. probitmfx(,, atmean = TRUE, = FALSE, = NULL, = NULL, start = NULL, = list()) atmean start default marginal effects represent the partial effects for the average observation. If atmean = FALSE the function calculates average partial effects. starting values for the parameters in the glm model. see glm.. If both =TRUE and!is.null() the function overrides the command and computes clustered standard errors.

14 probitmfx 13 mfxest dcvar the ted glm object. 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. the matched. References William H. Greene (2008). Econometric Analysis (6th ed.). Prentice Hall, N.Y. pp glm # simulate some # binary outcome y = ifelse(pnorm( *x + rnorm(n))>0.5, 1, 0) =.frame(y,x) probitmfx(=y~x, =)

15 Index betamfx, 2, 4 betaor, 3, 3 betareg, 2 4 betareg., 2, 3 glm, 5 7, glm., 5 8, glm.nb, 7 9 logitmfx, 4, 7 logitor, 5, 6 negbinirr, 7, 9 negbinmfx, 8, 8 poissonirr, 9, 11 poissonmfx, 10, 11 print.betamfx (betamfx), 2 print.betaor (betaor), 3 print.logitmfx (logitmfx), 4 print.logitor (logitor), 6 print.negbinirr (negbinirr), 7 print.negbinmfx (negbinmfx), 8 print.poissonirr (poissonirr), 9 print.poissonmfx (poissonmfx), 11 print.probitmfx (probitmfx), 12 probitmfx, 12 14

Package mle.tools. February 21, 2017

Package mle.tools. February 21, 2017 Type Package Package mle.tools February 21, 2017 Title Expected/Observed Fisher Information and Bias-Corrected Maximum Likelihood Estimate(s) Version 1.0.0 License GPL (>= 2) Date 2017-02-21 Author Josmar

More information

Package LNIRT. R topics documented: November 14, 2018

Package LNIRT. R topics documented: November 14, 2018 Package LNIRT November 14, 2018 Type Package Title LogNormal Response Time Item Response Theory Models Version 0.3.5 Author Jean-Paul Fox, Konrad Klotzke, Rinke Klein Entink Maintainer Konrad Klotzke

More information

Package SimCorMultRes

Package SimCorMultRes Package SimCorMultRes February 15, 2013 Type Package Title Simulates Correlated Multinomial Responses Version 1.0 Date 2012-11-12 Author Anestis Touloumis Maintainer Anestis Touloumis

More information

Comparing Odds Ratios and Marginal Effects from Logistic Regression and Linear Probability Models

Comparing Odds Ratios and Marginal Effects from Logistic Regression and Linear Probability Models Western Kentucky University From the SelectedWorks of Matt Bogard Spring March 11, 2016 Comparing Odds Ratios and Marginal Effects from Logistic Regression and Linear Probability Models Matt Bogard Available

More information

Package gmediation. R topics documented: June 27, Type Package

Package gmediation. R topics documented: June 27, Type Package Type Package Package gmediation June 27, 2017 Title Mediation Analysis for Multiple and Multi-Stage Mediators Version 0.1.1 Author Jang Ik Cho, Jeffrey Albert Maintainer Jang Ik Cho Description

More information

Package MixedPoisson

Package MixedPoisson Type Package Title Mixed Poisson Models Version 2.0 Date 2016-11-24 Package MixedPoisson December 9, 2016 Author Alicja Wolny-Dominiak and Maintainer Alicja Wolny-Dominiak

More information

Package cbinom. June 10, 2018

Package cbinom. June 10, 2018 Package cbinom June 10, 2018 Type Package Title Continuous Analog of a Binomial Distribution Version 1.1 Date 2018-06-09 Author Dan Dalthorp Maintainer Dan Dalthorp Description Implementation

More information

Package QRank. January 12, 2017

Package QRank. January 12, 2017 Type Package Package QRank January 12, 2017 Title A Novel Quantile Regression Approach for eqtl Discovery Version 1.0 Date 2016-12-25 Author Xiaoyu Song Maintainer Xiaoyu Song

More information

The UCD community has made this article openly available. Please share how this access benefits you. Your story matters!

The UCD community has made this article openly available. Please share how this access benefits you. Your story matters! Provided by the author(s) and University College Dublin Library in accordance with publisher policies., Please cite the published version when available. Title Simple logit and probit marginal effects

More information

Package EMT. February 19, 2015

Package EMT. February 19, 2015 Type Package Package EMT February 19, 2015 Title Exact Multinomial Test: Goodness-of-Fit Test for Discrete Multivariate data Version 1.1 Date 2013-01-27 Author Uwe Menzel Maintainer Uwe Menzel

More information

Catherine De Vries, Spyros Kosmidis & Andreas Murr

Catherine De Vries, Spyros Kosmidis & Andreas Murr APPLIED STATISTICS FOR POLITICAL SCIENTISTS WEEK 8: DEPENDENT CATEGORICAL VARIABLES II Catherine De Vries, Spyros Kosmidis & Andreas Murr Topic: Logistic regression. Predicted probabilities. STATA commands

More information

Package ratesci. April 21, 2017

Package ratesci. April 21, 2017 Type Package Package ratesci April 21, 2017 Title Confidence Intervals for Comparisons of Binomial or Poisson Rates Version 0.2-0 Date 2017-04-21 Author Pete Laud [aut, cre] Maintainer Pete Laud

More information

Package ELMSO. September 3, 2018

Package ELMSO. September 3, 2018 Type Package Package ELMSO September 3, 2018 Title Implementation of the Efficient Large-Scale Online Display Advertising Algorithm Version 1.0.0 Date 2018-8-31 Maintainer Courtney Paulson

More information

Package finiteruinprob

Package finiteruinprob Type Package Package finiteruinprob December 30, 2016 Title Computation of the Probability of Ruin Within a Finite Time Horizon Version 0.6 Date 2016-12-30 Maintainer Benjamin Baumgartner

More information

Christopher Meaney * and Rahim Moineddin

Christopher Meaney * and Rahim Moineddin Meaney and Moineddin BMC Medical Research Methodology 2014, 14:14 RESEARCH ARTICLE Open Access A Monte Carlo simulation study comparing linear regression, beta regression, variable-dispersion beta regression

More information

Package uqr. April 18, 2017

Package uqr. April 18, 2017 Type Package Title Unconditional Quantile Regression Version 1.0.0 Date 2017-04-18 Package uqr April 18, 2017 Author Stefano Nembrini Maintainer Stefano Nembrini

More information

Multiple Regression and Logistic Regression II. Dajiang 525 Apr

Multiple Regression and Logistic Regression II. Dajiang 525 Apr Multiple Regression and Logistic Regression II Dajiang Liu @PHS 525 Apr-19-2016 Materials from Last Time Multiple regression model: Include multiple predictors in the model = + + + + How to interpret the

More information

Package semsfa. April 21, 2018

Package semsfa. April 21, 2018 Type Package Package semsfa April 21, 2018 Title Semiparametric Estimation of Stochastic Frontier Models Version 1.1 Date 2018-04-18 Author Giancarlo Ferrara and Francesco Vidoli Maintainer Giancarlo Ferrara

More information

Package GenOrd. September 12, 2015

Package GenOrd. September 12, 2015 Package GenOrd September 12, 2015 Type Package Title Simulation of Discrete Random Variables with Given Correlation Matrix and Marginal Distributions Version 1.4.0 Date 2015-09-11 Author Alessandro Barbiero,

More information

Local Maxima in the Estimation of the ZINB and Sample Selection models

Local Maxima in the Estimation of the ZINB and Sample Selection models 1 Local Maxima in the Estimation of the ZINB and Sample Selection models J.M.C. Santos Silva School of Economics, University of Surrey 23rd London Stata Users Group Meeting 7 September 2017 2 1. Introduction

More information

Package PortRisk. R topics documented: November 1, Type Package Title Portfolio Risk Analysis Version Date

Package PortRisk. R topics documented: November 1, Type Package Title Portfolio Risk Analysis Version Date Type Package Title Portfolio Risk Analysis Version 1.1.0 Date 2015-10-31 Package PortRisk November 1, 2015 Risk Attribution of a portfolio with Volatility Risk Analysis. License GPL-2 GPL-3 Depends R (>=

More information

Package XNomial. December 24, 2015

Package XNomial. December 24, 2015 Type Package Package XNomial December 24, 2015 Title Exact Goodness-of-Fit Test for Multinomial Data with Fixed Probabilities Version 1.0.4 Date 2015-12-22 Author Bill Engels Maintainer

More information

Lecture 10: Alternatives to OLS with limited dependent variables, part 1. PEA vs APE Logit/Probit

Lecture 10: Alternatives to OLS with limited dependent variables, part 1. PEA vs APE Logit/Probit Lecture 10: Alternatives to OLS with limited dependent variables, part 1 PEA vs APE Logit/Probit PEA vs APE PEA: partial effect at the average The effect of some x on y for a hypothetical case with sample

More information

Package RcmdrPlugin.RiskDemo

Package RcmdrPlugin.RiskDemo Type Package Package RcmdrPlugin.RiskDemo October 3, 2018 Title R Commander Plug-in for Risk Demonstration Version 2.0 Date 2018-10-3 Author Arto Luoma Maintainer R Commander plug-in to demonstrate various

More information

Package cnbdistr. R topics documented: July 17, 2017

Package cnbdistr. R topics documented: July 17, 2017 Type Package Title Conditional Negative Binomial istribution Version 1.0.1 ate 2017-07-04 Author Xiaotian Zhu Package cnbdistr July 17, 2017 Maintainer Xiaotian Zhu escription

More information

Getting Started in Logit and Ordered Logit Regression (ver. 3.1 beta)

Getting Started in Logit and Ordered Logit Regression (ver. 3.1 beta) Getting Started in Logit and Ordered Logit Regression (ver. 3. beta Oscar Torres-Reyna Data Consultant otorres@princeton.edu http://dss.princeton.edu/training/ Logit model Use logit models whenever your

More information

Package quantileda. R topics documented: February 2, 2016

Package quantileda. R topics documented: February 2, 2016 Type Package Title Quantile Classifier Version 1.1 Date 2016-02-02 Author Package quantileda February 2, 2016 Maintainer Cinzia Viroli Code for centroid, median and quantile classifiers.

More information

Package SMFI5. February 19, 2015

Package SMFI5. February 19, 2015 Type Package Package SMFI5 February 19, 2015 Title R functions and data from Chapter 5 of 'Statistical Methods for Financial Engineering' Version 1.0 Date 2013-05-16 Author Maintainer

More information

Package eesim. June 3, 2017

Package eesim. June 3, 2017 Type Package Package eesim June 3, 2017 Title Simulate and Evaluate Time Series for Environmental Epidemiology Version 0.1.0 Date 2017-06-02 Provides functions to create simulated time series of environmental

More information

Multinomial Choice (Basic Models)

Multinomial Choice (Basic Models) Unversitat Pompeu Fabra Lecture Notes in Microeconometrics Dr Kurt Schmidheiny June 17, 2007 Multinomial Choice (Basic Models) 2 1 Ordered Probit Contents Multinomial Choice (Basic Models) 1 Ordered Probit

More information

Package ensemblemos. March 22, 2018

Package ensemblemos. March 22, 2018 Type Package Title Ensemble Model Output Statistics Version 0.8.2 Date 2018-03-21 Package ensemblemos March 22, 2018 Author RA Yuen, Sandor Baran, Chris Fraley, Tilmann Gneiting, Sebastian Lerch, Michael

More information

Package ald. February 1, 2018

Package ald. February 1, 2018 Type Package Title The Asymmetric Laplace Distribution Version 1.2 Date 2018-01-31 Package ald February 1, 2018 Author Christian E. Galarza and Victor H. Lachos

More information

Getting Started in Logit and Ordered Logit Regression (ver. 3.1 beta)

Getting Started in Logit and Ordered Logit Regression (ver. 3.1 beta) Getting Started in Logit and Ordered Logit Regression (ver. 3. beta Oscar Torres-Reyna Data Consultant otorres@princeton.edu http://dss.princeton.edu/training/ Logit model Use logit models whenever your

More information

Package FADA. May 20, 2016

Package FADA. May 20, 2016 Type Package Package FADA May 20, 2016 Title Variable Selection for Supervised Classification in High Dimension Version 1.3.2 Date 2016-05-12 Author Emeline Perthame (INRIA, Grenoble, France), Chloe Friguet

More information

econstor Make Your Publications Visible.

econstor Make Your Publications Visible. econstor Make Your Publications Visible. A Service of Wirtschaft Centre zbwleibniz-informationszentrum Economics Fernihough, Alan Working Paper Simple logit and probit marginal effects in R Working Paper

More information

book 2014/5/6 15:21 page 261 #285

book 2014/5/6 15:21 page 261 #285 book 2014/5/6 15:21 page 261 #285 Chapter 10 Simulation Simulations provide a powerful way to answer questions and explore properties of statistical estimators and procedures. In this chapter, we will

More information

Package cumstats. R topics documented: January 16, 2017

Package cumstats. R topics documented: January 16, 2017 Type Package Title Cumulative Descriptive Statistics Version 1.0 Date 2017-01-13 Author Arturo Erdely and Ian Castillo Package cumstats January 16, 2017 Maintainer Arturo Erdely

More information

Package dng. November 22, 2017

Package dng. November 22, 2017 Version 0.1.1 Date 2017-11-22 Title Distributions and Gradients Type Package Author Feng Li, Jiayue Zeng Maintainer Jiayue Zeng Depends R (>= 3.0.0) Package dng November 22, 2017 Provides

More information

List of figures. I General information 1

List of figures. I General information 1 List of figures Preface xix xxi I General information 1 1 Introduction 7 1.1 What is this book about?........................ 7 1.2 Which models are considered?...................... 8 1.3 Whom is this

More information

Package pglm. November 2, 2017

Package pglm. November 2, 2017 Version 0.2-1 Date 2017-10-29 Title Panel Generalized Linear Models Depends R (>= 2.10), maxlik, plm Imports statmod Suggests lmtest, car Package pglm November 2, 2017 Estimation of panel models for glm-like

More information

Introduction to POL 217

Introduction to POL 217 Introduction to POL 217 Brad Jones 1 1 Department of Political Science University of California, Davis January 9, 2007 Topics of Course Outline Models for Categorical Data. Topics of Course Models for

More information

Package tailloss. August 29, 2016

Package tailloss. August 29, 2016 Package tailloss August 29, 2016 Title Estimate the Probability in the Upper Tail of the Aggregate Loss Distribution Set of tools to estimate the probability in the upper tail of the aggregate loss distribution

More information

Package rmda. July 17, Type Package Title Risk Model Decision Analysis Version 1.6 Date Author Marshall Brown

Package rmda. July 17, Type Package Title Risk Model Decision Analysis Version 1.6 Date Author Marshall Brown Type Package Title Risk Model Decision Analysis Version 1.6 Date 2018-07-17 Author Marshall Brown Package rmda July 17, 2018 Maintainer Marshall Brown Provides tools to evaluate

More information

Package scenario. February 17, 2016

Package scenario. February 17, 2016 Type Package Package scenario February 17, 2016 Title Construct Reduced Trees with Predefined Nodal Structures Version 1.0 Date 2016-02-15 URL https://github.com/swd-turner/scenario Uses the neural gas

More information

WesVar uses repeated replication variance estimation methods exclusively and as a result does not offer the Taylor Series Linearization approach.

WesVar uses repeated replication variance estimation methods exclusively and as a result does not offer the Taylor Series Linearization approach. CHAPTER 9 ANALYSIS EXAMPLES REPLICATION WesVar 4.3 GENERAL NOTES ABOUT ANALYSIS EXAMPLES REPLICATION These examples are intended to provide guidance on how to use the commands/procedures for analysis of

More information

This is a repository copy of Asymmetries in Bank of England Monetary Policy.

This is a repository copy of Asymmetries in Bank of England Monetary Policy. This is a repository copy of Asymmetries in Bank of England Monetary Policy. White Rose Research Online URL for this paper: http://eprints.whiterose.ac.uk/9880/ Monograph: Gascoigne, J. and Turner, P.

More information

Package PortfolioOptim

Package PortfolioOptim Package PortfolioOptim Title Small/Large Sample Portfolio Optimization Version 1.0.3 April 20, 2017 Description Two functions for financial portfolio optimization by linear programming are provided. One

More information

Package ph2mult. November 23, 2016

Package ph2mult. November 23, 2016 Type Package Package ph2mult November 23, 2016 Title Phase II Clinical Trial Design for Multinomial Endpoints Version 0.1.1 Author Yalin Zhu, Rui Qin Maintainer Yalin Zhu Description

More information

Negative Binomial Model for Count Data Log-linear Models for Contingency Tables - Introduction

Negative Binomial Model for Count Data Log-linear Models for Contingency Tables - Introduction Negative Binomial Model for Count Data Log-linear Models for Contingency Tables - Introduction Statistics 149 Spring 2006 Copyright 2006 by Mark E. Irwin Negative Binomial Family Example: Absenteeism from

More information

Package MSMwRA. August 7, 2018

Package MSMwRA. August 7, 2018 Type Package Package MSMwRA August 7, 2018 Title Multivariate Statistical Methods with R Applications Version 1.3 Date 2018-07-17 Author Hasan BULUT Maintainer Hasan BULUT Data

More information

Introduction to fractional outcome regression models using the fracreg and betareg commands

Introduction to fractional outcome regression models using the fracreg and betareg commands Introduction to fractional outcome regression models using the fracreg and betareg commands Miguel Dorta Staff Statistician StataCorp LP Aguascalientes, Mexico (StataCorp LP) fracreg - betareg May 18,

More information

Package smam. October 1, 2016

Package smam. October 1, 2016 Type Package Title Statistical Modeling of Animal Movements Version 0.3-0 Date 2016-09-02 Package smam October 1, 2016 Author Jun Yan and Vladimir Pozdnyakov

More information

Package optimstrat. September 10, 2018

Package optimstrat. September 10, 2018 Type Package Title Choosing the Sample Strategy Version 1.1 Date 2018-09-04 Package optimstrat September 10, 2018 Author Edgar Bueno Maintainer Edgar Bueno

More information

A Joint Credit Scoring Model for Peer-to-Peer Lending and Credit Bureau

A Joint Credit Scoring Model for Peer-to-Peer Lending and Credit Bureau A Joint Credit Scoring Model for Peer-to-Peer Lending and Credit Bureau Credit Research Centre and University of Edinburgh raffaella.calabrese@ed.ac.uk joint work with Silvia Osmetti and Luca Zanin Credit

More information

Multinomial Logit Models for Variable Response Categories Ordered

Multinomial Logit Models for Variable Response Categories Ordered www.ijcsi.org 219 Multinomial Logit Models for Variable Response Categories Ordered Malika CHIKHI 1*, Thierry MOREAU 2 and Michel CHAVANCE 2 1 Mathematics Department, University of Constantine 1, Ain El

More information

Using R to Create Synthetic Discrete Response Regression Models

Using R to Create Synthetic Discrete Response Regression Models Arizona State University From the SelectedWorks of Joseph M Hilbe July 3, 2011 Using R to Create Synthetic Discrete Response Regression Models Joseph Hilbe, Arizona State University Available at: https://works.bepress.com/joseph_hilbe/3/

More information

STA 4504/5503 Sample questions for exam True-False questions.

STA 4504/5503 Sample questions for exam True-False questions. STA 4504/5503 Sample questions for exam 2 1. True-False questions. (a) For General Social Survey data on Y = political ideology (categories liberal, moderate, conservative), X 1 = gender (1 = female, 0

More information

Package jrvfinance. R topics documented: August 29, 2016

Package jrvfinance. R topics documented: August 29, 2016 Package jrvfinance August 29, 2016 Title Basic Finance; NPV/IRR/Annuities/Bond-Pricing; Black Scholes Version 1.03 Implements the basic financial analysis functions similar to (but not identical to) what

More information

[BINARY DEPENDENT VARIABLE ESTIMATION WITH STATA]

[BINARY DEPENDENT VARIABLE ESTIMATION WITH STATA] Tutorial #3 This example uses data in the file 16.09.2011.dta under Tutorial folder. It contains 753 observations from a sample PSID data on the labor force status of married women in the U.S in 1975.

More information

Zero-inflated models: Poisson, Binomial, negative Binomial and BetaBinomial

Zero-inflated models: Poisson, Binomial, negative Binomial and BetaBinomial Zero-inflated models: Poisson, Binomial, negative Binomial and BetaBinomial Parametrisation There is support two types of zero-inflated models, which we name type 0 and type 1. These are defined for both

More information

Subject CS1 Actuarial Statistics 1 Core Principles. Syllabus. for the 2019 exams. 1 June 2018

Subject CS1 Actuarial Statistics 1 Core Principles. Syllabus. for the 2019 exams. 1 June 2018 ` Subject CS1 Actuarial Statistics 1 Core Principles Syllabus for the 2019 exams 1 June 2018 Copyright in this Core Reading is the property of the Institute and Faculty of Actuaries who are the sole distributors.

More information

Tests for the Odds Ratio in a Matched Case-Control Design with a Binary X

Tests for the Odds Ratio in a Matched Case-Control Design with a Binary X Chapter 156 Tests for the Odds Ratio in a Matched Case-Control Design with a Binary X Introduction This procedure calculates the power and sample size necessary in a matched case-control study designed

More information

Bayesian Approach to PD Calibration and Stress-testing in Low Default Portfolios

Bayesian Approach to PD Calibration and Stress-testing in Low Default Portfolios Journal of Applied Finance & Banking, vol. 7, no. 2, 2017, 83-98 ISSN: 1792-6580 (print version), 1792-6599 (online) Scienpress Ltd, 2017 Bayesian Approach to PD Calibration and Stress-testing in Low Default

More information

Package xva. November 26, 2016

Package xva. November 26, 2016 Type Package Package xva November 26, 2016 Title Calculates Credit Risk Valuation Adjustments Version 0.8.1 Date 2016-11-19 Author Tasos Grivas Maintainer Calculates a number of valuation adjustments including

More information

NPTEL Project. Econometric Modelling. Module 16: Qualitative Response Regression Modelling. Lecture 20: Qualitative Response Regression Modelling

NPTEL Project. Econometric Modelling. Module 16: Qualitative Response Regression Modelling. Lecture 20: Qualitative Response Regression Modelling 1 P age NPTEL Project Econometric Modelling Vinod Gupta School of Management Module 16: Qualitative Response Regression Modelling Lecture 20: Qualitative Response Regression Modelling Rudra P. Pradhan

More information

Briefing 1: The Big Society and Welfare reform

Briefing 1: The Big Society and Welfare reform Briefing 1: The Big Society and Welfare reform McKee, K., Moore, T., & Muir, J. (2014). Briefing 1: The Big Society and Welfare reform. (The Big Society, Localism and Housing Policy: an ESRC Seminar Series).

More information

Package multiassetoptions

Package multiassetoptions Package multiassetoptions February 20, 2015 Type Package Title Finite Difference Method for Multi-Asset Option Valuation Version 0.1-1 Date 2015-01-31 Author Maintainer Michael Eichenberger

More information

Exchange Rate Regime Classification with Structural Change Methods

Exchange Rate Regime Classification with Structural Change Methods Exchange Rate Regime Classification with Structural Change Methods Achim Zeileis Ajay Shah Ila Patnaik http://statmath.wu-wien.ac.at/ zeileis/ Overview Exchange rate regimes What is the new Chinese exchange

More information

CREDIT RISK MODELING IN R. Logistic regression: introduction

CREDIT RISK MODELING IN R. Logistic regression: introduction CREDIT RISK MODELING IN R Logistic regression: introduction Final data structure > str(training_set) 'data.frame': 19394 obs. of 8 variables: $ loan_status : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1

More information

ANALYSIS OF DISCRETE DATA STATA CODES. Standard errors/robust: vce(vcetype): vcetype may be, for example, robust, cluster clustvar or bootstrap.

ANALYSIS OF DISCRETE DATA STATA CODES. Standard errors/robust: vce(vcetype): vcetype may be, for example, robust, cluster clustvar or bootstrap. 1. LOGISTIC REGRESSION Logistic regression: general form ANALYSIS OF DISCRETE DATA STATA CODES logit depvar [indepvars] [if] [in] [weight] [, options] Standard errors/robust: vce(vcetype): vcetype may

More information

Package stable. February 6, 2017

Package stable. February 6, 2017 Version 1.1.2 Package stable February 6, 2017 Title Probability Functions and Generalized Regression Models for Stable Distributions Depends R (>= 1.4), rmutil Description Density, distribution, quantile

More information

Exchange Rate Regime Analysis Using Structural Change Methods

Exchange Rate Regime Analysis Using Structural Change Methods Exchange Rate Regime Analysis Using Structural Change Methods Achim Zeileis Ajay Shah Ila Patnaik http://statmath.wu-wien.ac.at/~zeileis/ Overview Exchange rate regimes What is the new Chinese exchange

More information

Package YieldCurve. July 2, 2014

Package YieldCurve. July 2, 2014 Package YieldCurve July 2, 2014 Type Package Title Modelling and estimation of the yield curve Version 4.1 Date 2013-01-19 Depends R (>= 2.10, xts Author Sergio Salvino Guirreri Maintainer Sergio Salvino

More information

Bayesian Multinomial Model for Ordinal Data

Bayesian Multinomial Model for Ordinal Data Bayesian Multinomial Model for Ordinal Data Overview This example illustrates how to fit a Bayesian multinomial model by using the built-in mutinomial density function (MULTINOM) in the MCMC procedure

More information

Package GCPM. December 30, 2016

Package GCPM. December 30, 2016 Type Package Title Generalized Credit Portfolio Model Version 1.2.2 Date 2016-12-29 Author Kevin Jakob Package GCPM December 30, 2016 Maintainer Kevin Jakob Analyze the

More information

The actuar Package. March 24, bstraub... 1 hachemeister... 3 panjer... 4 rearrangepf... 5 simpf Index 8. Buhlmann-Straub Credibility Model

The actuar Package. March 24, bstraub... 1 hachemeister... 3 panjer... 4 rearrangepf... 5 simpf Index 8. Buhlmann-Straub Credibility Model The actuar Package March 24, 2006 Type Package Title Actuarial functions Version 0.1-3 Date 2006-02-16 Author Vincent Goulet, Sébastien Auclair Maintainer Vincent Goulet

More information

Package RTDAmeritrade

Package RTDAmeritrade Package RTDAmeritrade February 15, 2013 Version 0.0.1 Date 2011-06-4 Title RTDAmeritrade Author Theodore Van Rooy Maintainer Theodore Van Rooy Depends R (>= 2.9.1), xts, zoo,

More information

Intro to GLM Day 2: GLM and Maximum Likelihood

Intro to GLM Day 2: GLM and Maximum Likelihood Intro to GLM Day 2: GLM and Maximum Likelihood Federico Vegetti Central European University ECPR Summer School in Methods and Techniques 1 / 32 Generalized Linear Modeling 3 steps of GLM 1. Specify the

More information

Analyzing the Determinants of Project Success: A Probit Regression Approach

Analyzing the Determinants of Project Success: A Probit Regression Approach 2016 Annual Evaluation Review, Linked Document D 1 Analyzing the Determinants of Project Success: A Probit Regression Approach 1. This regression analysis aims to ascertain the factors that determine development

More information

Exchange Rate Regime Classification with Structural Change Methods

Exchange Rate Regime Classification with Structural Change Methods Exchange Rate Regime Classification with Structural Change Methods Achim Zeileis Ajay Shah Ila Patnaik http://statmath.wu-wien.ac.at/ zeileis/ Overview Exchange rate regimes What is the new Chinese exchange

More information

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. Random Variables 2 A random variable X is a numerical (integer, real, complex, vector etc.) summary of the outcome of the random experiment.

More information

Package epidata. April 3, 2018

Package epidata. April 3, 2018 Package epidata April 3, 2018 Type Package Title Tools to Retrieve Extracts Version 0.2.0 Date 2018-03-29 Maintainer Bob Rudis Encoding UTF-8 The Economic Policy Institute ()

More information

Probits. Catalina Stefanescu, Vance W. Berger Scott Hershberger. Abstract

Probits. Catalina Stefanescu, Vance W. Berger Scott Hershberger. Abstract Probits Catalina Stefanescu, Vance W. Berger Scott Hershberger Abstract Probit models belong to the class of latent variable threshold models for analyzing binary data. They arise by assuming that the

More information

I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN

I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN Modeling Counts & ZIP: Extended Example Carolyn J. Anderson Department of Educational Psychology I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN Modeling Counts Slide 1 of 36 Outline Outline

More information

Discrete Choice Modeling William Greene Stern School of Business, New York University. Lab Session 2 Binary Choice Modeling with Panel Data

Discrete Choice Modeling William Greene Stern School of Business, New York University. Lab Session 2 Binary Choice Modeling with Panel Data Discrete Choice Modeling William Greene Stern School of Business, New York University Lab Session 2 Binary Choice Modeling with Panel Data This assignment will extend the models of binary choice and ordered

More information

Modelling the potential human capital on the labor market using logistic regression in R

Modelling the potential human capital on the labor market using logistic regression in R Modelling the potential human capital on the labor market using logistic regression in R Ana-Maria Ciuhu (dobre.anamaria@hotmail.com) Institute of National Economy, Romanian Academy; National Institute

More information

Final Exam, section 2. Tuesday, December hour, 30 minutes

Final Exam, section 2. Tuesday, December hour, 30 minutes San Francisco State University Michael Bar ECON 312 Fall 2018 Final Exam, section 2 Tuesday, December 18 1 hour, 30 minutes Name: Instructions 1. This is closed book, closed notes exam. 2. You can use

More information

Conjugate Models. Patrick Lam

Conjugate Models. Patrick Lam Conjugate Models Patrick Lam Outline Conjugate Models What is Conjugacy? The Beta-Binomial Model The Normal Model Normal Model with Unknown Mean, Known Variance Normal Model with Known Mean, Unknown Variance

More information

Estimating Heterogeneous Choice Models with Stata

Estimating Heterogeneous Choice Models with Stata Estimating Heterogeneous Choice Models with Stata Richard Williams Notre Dame Sociology rwilliam@nd.edu West Coast Stata Users Group Meetings October 25, 2007 Overview When a binary or ordinal regression

More information

On the nature of corporate capital structure persistence and convergence*

On the nature of corporate capital structure persistence and convergence* On the nature of corporate capital structure persistence and convergence* Douglas O. Cook Department of Economics, Finance, and Legal Studies Culverhouse College of Business University of Alabama Tuscaloosa,

More information

Negative Binomial Regression By Joseph M. Hilbe READ ONLINE

Negative Binomial Regression By Joseph M. Hilbe READ ONLINE Negative Binomial Regression By Joseph M. Hilbe READ ONLINE Regression Models for Count Data in R Abstract The classical Poisson, geometric and negative binomial regression regression models discussed

More information

Package fmdates. January 5, 2018

Package fmdates. January 5, 2018 Type Package Title Financial Market Date Calculations Version 0.1.4 Package fmdates January 5, 2018 Implements common date calculations relevant for specifying the economic nature of financial market contracts

More information

Package rpms. May 5, 2018

Package rpms. May 5, 2018 Type Package Package rpms May 5, 2018 Title Recursive Partitioning for Modeling Survey Data Version 0.3.0 Date 2018-04-20 Maintainer Daniell Toth Fits a linear model to survey data

More information

sociology SO5032 Quantitative Research Methods Brendan Halpin, Sociology, University of Limerick Spring 2018 SO5032 Quantitative Research Methods

sociology SO5032 Quantitative Research Methods Brendan Halpin, Sociology, University of Limerick Spring 2018 SO5032 Quantitative Research Methods 1 SO5032 Quantitative Research Methods Brendan Halpin, Sociology, University of Limerick Spring 2018 Lecture 10: Multinomial regression baseline category extension of binary What if we have multiple possible

More information

Questions of Statistical Analysis and Discrete Choice Models

Questions of Statistical Analysis and Discrete Choice Models APPENDIX D Questions of Statistical Analysis and Discrete Choice Models In discrete choice models, the dependent variable assumes categorical values. The models are binary if the dependent variable assumes

More information

Package ESG. February 19, 2015

Package ESG. February 19, 2015 Type Package Title ESG - A package for asset projection Version 0.1 Date 2013-01-13 Package ESG February 19, 2015 Author Jean-Charles Croix, Thierry Moudiki, Frédéric Planchet, Wassim Youssef Maintainer

More information

Module 4 Bivariate Regressions

Module 4 Bivariate Regressions AGRODEP Stata Training April 2013 Module 4 Bivariate Regressions Manuel Barron 1 and Pia Basurto 2 1 University of California, Berkeley, Department of Agricultural and Resource Economics 2 University of

More information

FAV i R This paper is produced mechanically as part of FAViR. See for more information.

FAV i R This paper is produced mechanically as part of FAViR. See  for more information. The POT package By Avraham Adler FAV i R This paper is produced mechanically as part of FAViR. See http://www.favir.net for more information. Abstract This paper is intended to briefly demonstrate the

More information

Package BatchGetSymbols

Package BatchGetSymbols Package BatchGetSymbols January 22, 2018 Title Downloads and Organizes Financial Data for Multiple Tickers Version 2.0 Makes it easy to download a large number of trade data from Yahoo or Google Finance.

More information

High-Frequency Data Analysis and Market Microstructure [Tsay (2005), chapter 5]

High-Frequency Data Analysis and Market Microstructure [Tsay (2005), chapter 5] 1 High-Frequency Data Analysis and Market Microstructure [Tsay (2005), chapter 5] High-frequency data have some unique characteristics that do not appear in lower frequencies. At this class we have: Nonsynchronous

More information