Nested Logit. Brad Jones 1. April 30, University of California, Davis. 1 Department of Political Science. POL 213: Research Methods
|
|
- Jayson Walters
- 7 years ago
- Views:
Transcription
1 Nested Logit Brad 1 1 Department of Political Science University of California, Davis April 30, 2008
2
3 Nested Logit Interesting model that does not have IIA property. Possible candidate model for structured choice situations. Conceptual example: J political parties a voter i could choose from. Say: Green, Workers, Social Dem., Moderate, CR, Extreme Right Models? Conditional logit or MNL? IIA property could be an issue.
4 Nested Logit IIA says that the disturbances are independent and homoskedastic. Odds are assumed to remain the same if some alternative is removed. Problem: one left party is a close substitute (possibly) of another. If C D voters split their vote across two leftist parties, elimination of one from the choice set does not imply they will randomly distribute over remaining choices. That is, they most likely will gravitate to the remaining leftist party. If so, odds ratios will change because of nonrandom redistribution.
5 Nested Logit Under NL (or MNNL), the idea is to group comparable alternatives and then structure choice setting as a tree. Voter i decides to vote leftist, centrist, or rightist. Call this the top level choice. Once this choice is made, the voter must decide which outcome to choose: Left: Green, Workers; Center: SD, Moderate; Right: CR, Extreme Right Basic result from conditional probability: Pr ij = Pr j i Pr i J outcomes (i.e. parties) and i branches.
6 Nested Logit Conditional probability says the probability of the bottom level choice is equal to the conditional probability of selecting j given branch i times the probability that branch i was selected. two levels of probability because two levels of decisions. Consider the conditional probability statement, Pr j i. Suppose we specify a utility model: U ij = β x ij + α w i As in the CL presentation, the x ij are covariates that can change over the choices (bottom level) and the w i are covariates that are attributes of the choice sets (top level).
7 Nested Logit The conditional probabilities can only be a function of the x ij : Pr j i = = exp(β x ij ) exp(α w i ) exp(α w i ) N i k=1 exp(β x ik ) exp(β x ij ) Ni k=1 exp(β x ik ) The top level probability is defined by first identifying what is sometimes called an inclusive value parameter: ( Ni ) I i = log exp(β x ik ) k=1 The probability of branch i is then Pr i = exp(α w i + τ i I i ) C m=1 exp(α w i + τ m I m )
8 Nested Logit The inclusive value parameter, τ, is the weight accorded each of the branches. Under CL (or MNL), we assume this weight is fixed at 1. Estimation is done via full information maximum likelihood: log L = N log [ ] Pr j i Pr i. i Model has many parameters. It requires a lot of work to interpret. My job to show you how... Stata is actually quite good w/this model.
9 Nested Logit: Illustration I m going to continue with the Stata data set provided by their website. We used it with conditional logit. Let s consider the data structure.
10 . list family_id restaurant chosen kids rating distance cost income in 1/ family~d restaurant chosen kids rating distance cost income Freebirds MamasPizza CafeEccell LosNortenos WingsNmore Christophers MadCows Freebirds MamasPizza CafeEccell LosNortenos WingsNmore Christophers MadCows Freebirds MamasPizza CafeEccell LosNortenos WingsNmore Christophers MadCows
11 . nlogitgen type=restaurant(fast: Freebirds MamasPizza, family: CafeEccell LosNortenos WingsNmore, fancy: Christophers MadCows) This returns: new variable type is generated with 3 groups label list lb_type lb_type: 1 fast 2 family 3 fancy. nlogittree restaurant type <-GIVES US THE TREE STRUCTURE. Type is the branch; restaurants are the "twigs." tree structure specified for the nested logit model top --> bottom type restaurant fast Freebirds MamasPizza family CafeEccell LosNorte~s WingsNmore fancy Christop~s MadCows
12 \newpage. nlogit chosen (restaurant= cost rating distance) (type = incfast incfancy kidfast kidfancy), group(family_id) nolog Nested logit estimates Levels = 2 Number of obs = 2100 Dependent variable = chosen LR chi2(10) = Log likelihood = Prob > chi2 = Coef. Std. Err. z P> z [95% Conf. Interval] restaurant cost <-These are the alpha parms. rating distance type incfast <-WHY DO I HAVE THESE? incfancy <-These are the beta parms. kidfast kidfancy (incl. value parameters) type /fast <-These are the tau parms. /family /fancy LR test of homoskedasticity (iv = 1): chi2(3)= 9.90 Prob > chi2 =
13 For fun.. nlogit chosen (restaurant= cost rating distance) (type = incfast incfancy kidfast kidfancy), group(family_id) nolog ivc(fast=1, family=1, fancy=1) notree <---CONSTRAINING TAU TO 1 User-defined constraints: IV constraints: [fast]_cons = 1 [family]_cons = 1 [fancy]_cons = 1 Nested logit regression Levels = 2 Number of obs = 2100 Dependent variable = chosen LR chi2(7) = Log likelihood = Prob > chi2 = Coef. Std. Err. z P> z [95% Conf. Interval] restaurant cost rating distance type incfast incfancy kidfast kidfancy (incl. value parameters) type /fast /family /fancy
14 Constraining tau=1 should recover conditional logit:. clogit chosen cost rating dist incfast incfancy kidfast kidfancy, group(family_id) Conditional (fixed-effects) logistic regression Number of obs = 2100 LR chi2(7) = Prob > chi2 = Log likelihood = Pseudo R2 = chosen Coef. Std. Err. z P> z [95% Conf. Interval] cost rating distance incfast incfancy kidfast kidfancy (And it does; verify from previous slide)
15 But since we know IIA doesn t hold, we should continue with unconstrained nested logit. Nested logit regression Levels = 2 Number of obs = 2100 Dependent variable = chosen LR chi2(10) = Log likelihood = Prob > chi2 = Coef. Std. Err. z P> z [95% Conf. Interval] restaurant cost rating distance type incfast incfancy kidfast kidfancy (incl. value parameters) type /fast /family /fancy LR test of homoskedasticity (iv = 1): chi2(3)= 9.90 Prob > chi2 =
16 Nested Logit: Illustration There are clearly many parameters here. Let s figure out what all of this means. I m going to make use of Stata s predict options to back out various quantities. Note, any of these quantities could be retrieved by hand using functions from above.
17 Nested Logit: Illustration predict pb will return the probability of choosing restaurant j. predict p1, p1 will return the probability of branch i. predict condpb, condpb will return Pr j i. predict xbb, xbb will return the linear prediction for the bottom-level choice. predict xb1, xb1 will return the linear prediction for the top-level choice. predict ivb, ivb will return the inclusive value parameter.
18 . list family_id chosen pb p1 condpb restaurant type in 1/ family~d chosen pb p1 condpb restaurant type Freebirds fast MamasPizza fast CafeEccell family LosNortenos family WingsNmore family Christophers fancy MadCows fancy Freebirds fast MamasPizza fast CafeEccell family LosNortenos family WingsNmore family Christophers fancy MadCows fancy family~d chosen xbb xb1 ivb restaurant type Freebirds fast MamasPizza fast CafeEccell family LosNortenos family WingsNmore family Christophers fancy MadCows fancy Freebirds fast MamasPizza fast CafeEccell family
19 LosNortenos family WingsNmore family Christophers fancy MadCows fancy
20 Where do the numbers come from? xbb: Linear prediction for the bottom level It s a function of the covariates cost, rating, and distance. For the first observation, we see this is:. display _b[cost]*cost+_b[rating]*rating+_b[distance]*distance condpb: Conditional probability of restaurant j given branch i (from equation on previous slide):. display exp( )/(exp( )+exp( )) for "FreeBirds" and. display exp( )/(exp( )+exp( )) for "MamasPizza." xb1: Linear prediction for i branch This is the linear prediction for the top-level model (or the branches):. display *incFast *incFancy *kidFast *kidFancy (The parms are the alphas from the model output)
21 OK. Now what about the "inclusive value parameters." These parameters essentially give us the "weight" the chooser ascribes to each branch. Under conditional logit, this weight is assumed to be uniform and therefore, 1. We see in our model that these parameters are not jointly 1 (which provides evidence in favor of the nested logit model). Above, I refer to these parameters as the tau. The question at hand now is where do the I come from? For the first family in the data set, note the following:. display log(exp( )+exp( )) display log(exp( )+exp( )+exp( )) display log(exp( )+exp( )) What do the numbers represent? The numbers in parentheses are our linear predictions for the "bottom level" choices, that is, the "xbb." Note, then, what the inclusive value gives us: it gives us a summary of the weight accorded each "branch" that is available to the chooser.
22 Ok, almost done. Now what about the top-level probabilities (i.e. the probability of choosing fast food, family, or fancy?). In lecture, I give the function. To compute it directly, we do the following:. display exp( _b[/fast]* )/ (exp( _b[/fast]* ) + exp( exp(0 +_b[/family]* )) +_b[/fancy]* ) Note where these numbers come from: they are the taus, the "ivb," and the "xb1." In doing this exercise, we reproduce pb1. Interpretation? The probability of choosing a fast food restaurant is.15 for a person with this covariate profile.
23 Finally, we can compute the "bottom-level" probability. It is the simple conditional probability result. For the first observation, it is:. display p1*condpb We could then "fill in the tree" for observation 1 (if we wanted to).
24 Nested Logit: Illustration So what would we get from this model if we fully interpreted it? The probability of choice j. That is, the unconditional probability. The conditional probability of choice j given the selection of branch i. The probability of choosing branch i. A direct test of the weight associated with each branch, given chooser attributes. Seems a useful empirical model for testing rational choice predictions. Data requirements are substantial, as is theory for nesting choices.
Discussion Section 4 ECON 139/239 2010 Summer Term II
Discussion Section 4 ECON 139/239 2010 Summer Term II 1. Let s use the CollegeDistance.csv data again. (a) An education advocacy group argues that, on average, a person s educational attainment would increase
More informationMultinomial and Ordinal Logistic Regression
Multinomial and Ordinal Logistic Regression ME104: Linear Regression Analysis Kenneth Benoit August 22, 2012 Regression with categorical dependent variables When the dependent variable is categorical,
More informationFrom the help desk: hurdle models
The Stata Journal (2003) 3, Number 2, pp. 178 184 From the help desk: hurdle models Allen McDowell Stata Corporation Abstract. This article demonstrates that, although there is no command in Stata for
More informationI L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN
Beckman HLM Reading Group: Questions, Answers and Examples Carolyn J. Anderson Department of Educational Psychology I L L I N O I S UNIVERSITY OF ILLINOIS AT URBANA-CHAMPAIGN Linear Algebra Slide 1 of
More informationIII. INTRODUCTION TO LOGISTIC REGRESSION. a) Example: APACHE II Score and Mortality in Sepsis
III. INTRODUCTION TO LOGISTIC REGRESSION 1. Simple Logistic Regression a) Example: APACHE II Score and Mortality in Sepsis The following figure shows 30 day mortality in a sample of septic patients as
More informationModule 14: Missing Data Stata Practical
Module 14: Missing Data Stata Practical Jonathan Bartlett & James Carpenter London School of Hygiene & Tropical Medicine www.missingdata.org.uk Supported by ESRC grant RES 189-25-0103 and MRC grant G0900724
More informationInstitut für Soziologie Eberhard Karls Universität Tübingen www.maartenbuis.nl
from Indirect Extracting from Institut für Soziologie Eberhard Karls Universität Tübingen www.maartenbuis.nl from Indirect What is the effect of x on y? Which effect do I choose: average marginal or marginal
More informationHandling missing data in Stata a whirlwind tour
Handling missing data in Stata a whirlwind tour 2012 Italian Stata Users Group Meeting Jonathan Bartlett www.missingdata.org.uk 20th September 2012 1/55 Outline The problem of missing data and a principled
More informationOverview Classes. 12-3 Logistic regression (5) 19-3 Building and applying logistic regression (6) 26-3 Generalizations of logistic regression (7)
Overview Classes 12-3 Logistic regression (5) 19-3 Building and applying logistic regression (6) 26-3 Generalizations of logistic regression (7) 2-4 Loglinear models (8) 5-4 15-17 hrs; 5B02 Building and
More informationHow to set the main menu of STATA to default factory settings standards
University of Pretoria Data analysis for evaluation studies Examples in STATA version 11 List of data sets b1.dta (To be created by students in class) fp1.xls (To be provided to students) fp1.txt (To be
More informationStatistics 104 Final Project A Culture of Debt: A Study of Credit Card Spending in America TF: Kevin Rader Anonymous Students: LD, MH, IW, MY
Statistics 104 Final Project A Culture of Debt: A Study of Credit Card Spending in America TF: Kevin Rader Anonymous Students: LD, MH, IW, MY ABSTRACT: This project attempted to determine the relationship
More informationMarginal Effects for Continuous Variables Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised February 21, 2015
Marginal Effects for Continuous Variables Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised February 21, 2015 References: Long 1997, Long and Freese 2003 & 2006 & 2014,
More informationLogit and Probit. Brad Jones 1. April 21, 2009. University of California, Davis. Bradford S. Jones, UC-Davis, Dept. of Political Science
Logit and Probit Brad 1 1 Department of Political Science University of California, Davis April 21, 2009 Logit, redux Logit resolves the functional form problem (in terms of the response function in the
More informationFrom this it is not clear what sort of variable that insure is so list the first 10 observations.
MNL in Stata We have data on the type of health insurance available to 616 psychologically depressed subjects in the United States (Tarlov et al. 1989, JAMA; Wells et al. 1989, JAMA). The insurance is
More informationMULTIPLE REGRESSION EXAMPLE
MULTIPLE REGRESSION EXAMPLE For a sample of n = 166 college students, the following variables were measured: Y = height X 1 = mother s height ( momheight ) X 2 = father s height ( dadheight ) X 3 = 1 if
More informationCompeting-risks regression
Competing-risks regression Roberto G. Gutierrez Director of Statistics StataCorp LP Stata Conference Boston 2010 R. Gutierrez (StataCorp) Competing-risks regression July 15-16, 2010 1 / 26 Outline 1. Overview
More informationECON 142 SKETCH OF SOLUTIONS FOR APPLIED EXERCISE #2
University of California, Berkeley Prof. Ken Chay Department of Economics Fall Semester, 005 ECON 14 SKETCH OF SOLUTIONS FOR APPLIED EXERCISE # Question 1: a. Below are the scatter plots of hourly wages
More informationIntroduction. Survival Analysis. Censoring. Plan of Talk
Survival Analysis Mark Lunt Arthritis Research UK Centre for Excellence in Epidemiology University of Manchester 01/12/2015 Survival Analysis is concerned with the length of time before an event occurs.
More informationSample Size Calculation for Longitudinal Studies
Sample Size Calculation for Longitudinal Studies Phil Schumm Department of Health Studies University of Chicago August 23, 2004 (Supported by National Institute on Aging grant P01 AG18911-01A1) Introduction
More informationLab 5 Linear Regression with Within-subject Correlation. Goals: Data: Use the pig data which is in wide format:
Lab 5 Linear Regression with Within-subject Correlation Goals: Data: Fit linear regression models that account for within-subject correlation using Stata. Compare weighted least square, GEE, and random
More informationOrdinal Regression. Chapter
Ordinal Regression Chapter 4 Many variables of interest are ordinal. That is, you can rank the values, but the real distance between categories is unknown. Diseases are graded on scales from least severe
More informationAn assessment of consumer willingness to pay for Renewable Energy Sources use in Italy: a payment card approach.
An assessment of consumer willingness to pay for Renewable Energy Sources use in Italy: a payment card approach. -First findings- University of Perugia Department of Economics, Finance and Statistics 1
More informationStatistical modelling with missing data using multiple imputation. Session 4: Sensitivity Analysis after Multiple Imputation
Statistical modelling with missing data using multiple imputation Session 4: Sensitivity Analysis after Multiple Imputation James Carpenter London School of Hygiene & Tropical Medicine Email: james.carpenter@lshtm.ac.uk
More informationA Panel Data Analysis of Corporate Attributes and Stock Prices for Indian Manufacturing Sector
Journal of Modern Accounting and Auditing, ISSN 1548-6583 November 2013, Vol. 9, No. 11, 1519-1525 D DAVID PUBLISHING A Panel Data Analysis of Corporate Attributes and Stock Prices for Indian Manufacturing
More informationFailure to take the sampling scheme into account can lead to inaccurate point estimates and/or flawed estimates of the standard errors.
Analyzing Complex Survey Data: Some key issues to be aware of Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised January 24, 2015 Rather than repeat material that is
More information11. Analysis of Case-control Studies Logistic Regression
Research methods II 113 11. Analysis of Case-control Studies Logistic Regression This chapter builds upon and further develops the concepts and strategies described in Ch.6 of Mother and Child Health:
More informationEditor Executive Editor Associate Editors Copyright Statement:
The Stata Journal Editor H. Joseph Newton Department of Statistics Texas A & M University College Station, Texas 77843 979-845-3142 979-845-3144 FAX jnewton@stata-journal.com Associate Editors Christopher
More informationIAPRI Quantitative Analysis Capacity Building Series. Multiple regression analysis & interpreting results
IAPRI Quantitative Analysis Capacity Building Series Multiple regression analysis & interpreting results How important is R-squared? R-squared Published in Agricultural Economics 0.45 Best article of the
More informationStandard errors of marginal effects in the heteroskedastic probit model
Standard errors of marginal effects in the heteroskedastic probit model Thomas Cornelißen Discussion Paper No. 320 August 2005 ISSN: 0949 9962 Abstract In non-linear regression models, such as the heteroskedastic
More informationAuxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus
Auxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus Tihomir Asparouhov and Bengt Muthén Mplus Web Notes: No. 15 Version 8, August 5, 2014 1 Abstract This paper discusses alternatives
More informationMilk Data Analysis. 1. Objective Introduction to SAS PROC MIXED Analyzing protein milk data using STATA Refit protein milk data using PROC MIXED
1. Objective Introduction to SAS PROC MIXED Analyzing protein milk data using STATA Refit protein milk data using PROC MIXED 2. Introduction to SAS PROC MIXED The MIXED procedure provides you with flexibility
More informationDepartment of Economics Session 2012/2013. EC352 Econometric Methods. Solutions to Exercises from Week 10 + 0.0077 (0.052)
Department of Economics Session 2012/2013 University of Essex Spring Term Dr Gordon Kemp EC352 Econometric Methods Solutions to Exercises from Week 10 1 Problem 13.7 This exercise refers back to Equation
More informationA Simple Feasible Alternative Procedure to Estimate Models with High-Dimensional Fixed Effects
DISCUSSION PAPER SERIES IZA DP No. 3935 A Simple Feasible Alternative Procedure to Estimate Models with High-Dimensional Fixed Effects Paulo Guimarães Pedro Portugal January 2009 Forschungsinstitut zur
More informationGeneralized Linear Models
Generalized Linear Models We have previously worked with regression models where the response variable is quantitative and normally distributed. Now we turn our attention to two types of models where the
More informationFrom the help desk: Swamy s random-coefficients model
The Stata Journal (2003) 3, Number 3, pp. 302 308 From the help desk: Swamy s random-coefficients model Brian P. Poi Stata Corporation Abstract. This article discusses the Swamy (1970) random-coefficients
More informationInteraction effects and group comparisons Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised February 20, 2015
Interaction effects and group comparisons Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised February 20, 2015 Note: This handout assumes you understand factor variables,
More informationCorrelation and Regression
Correlation and Regression Scatterplots Correlation Explanatory and response variables Simple linear regression General Principles of Data Analysis First plot the data, then add numerical summaries Look
More informationUsing An Ordered Logistic Regression Model with SAS Vartanian: SW 541
Using An Ordered Logistic Regression Model with SAS Vartanian: SW 541 libname in1 >c:\=; Data first; Set in1.extract; A=1; PROC LOGIST OUTEST=DD MAXITER=100 ORDER=DATA; OUTPUT OUT=CC XBETA=XB P=PROB; MODEL
More informationoutreg help pages Write formatted regression output to a text file After any estimation command: (Text-related options)
outreg help pages OUTREG HELP PAGES... 1 DESCRIPTION... 2 OPTIONS... 3 1. Text-related options... 3 2. Coefficient options... 4 3. Options for t statistics, standard errors, etc... 5 4. Statistics options...
More informationESTIMATING AVERAGE TREATMENT EFFECTS: IV AND CONTROL FUNCTIONS, II Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics
ESTIMATING AVERAGE TREATMENT EFFECTS: IV AND CONTROL FUNCTIONS, II Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics July 2009 1. Quantile Treatment Effects 2. Control Functions
More informationUsing Stata for Categorical Data Analysis
Using Stata for Categorical Data Analysis NOTE: These problems make extensive use of Nick Cox s tab_chi, which is actually a collection of routines, and Adrian Mander s ipf command. From within Stata,
More informationNonlinear Regression Functions. SW Ch 8 1/54/
Nonlinear Regression Functions SW Ch 8 1/54/ The TestScore STR relation looks linear (maybe) SW Ch 8 2/54/ But the TestScore Income relation looks nonlinear... SW Ch 8 3/54/ Nonlinear Regression General
More informationxtmixed & denominator degrees of freedom: myth or magic
xtmixed & denominator degrees of freedom: myth or magic 2011 Chicago Stata Conference Phil Ender UCLA Statistical Consulting Group July 2011 Phil Ender xtmixed & denominator degrees of freedom: myth or
More informationTwo Correlated Proportions (McNemar Test)
Chapter 50 Two Correlated Proportions (Mcemar Test) Introduction This procedure computes confidence intervals and hypothesis tests for the comparison of the marginal frequencies of two factors (each with
More informationMultiple Choice Models II
Multiple Choice Models II Laura Magazzini University of Verona laura.magazzini@univr.it http://dse.univr.it/magazzini Laura Magazzini (@univr.it) Multiple Choice Models II 1 / 28 Categorical data Categorical
More informationHURDLE AND SELECTION MODELS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics July 2009
HURDLE AND SELECTION MODELS Jeff Wooldridge Michigan State University BGSE/IZA Course in Microeconometrics July 2009 1. Introduction 2. A General Formulation 3. Truncated Normal Hurdle Model 4. Lognormal
More informationVI. Introduction to Logistic Regression
VI. Introduction to Logistic Regression We turn our attention now to the topic of modeling a categorical outcome as a function of (possibly) several factors. The framework of generalized linear models
More informationln(p/(1-p)) = α +β*age35plus, where p is the probability or odds of drinking
Dummy Coding for Dummies Kathryn Martin, Maternal, Child and Adolescent Health Program, California Department of Public Health ABSTRACT There are a number of ways to incorporate categorical variables into
More informationFrom the help desk: Demand system estimation
The Stata Journal (2002) 2, Number 4, pp. 403 410 From the help desk: Demand system estimation Brian P. Poi Stata Corporation Abstract. This article provides an example illustrating how to use Stata to
More informationEstimating the random coefficients logit model of demand using aggregate data
Estimating the random coefficients logit model of demand using aggregate data David Vincent Deloitte Economic Consulting London, UK davivincent@deloitte.co.uk September 14, 2012 Introduction Estimation
More informationWhat Every Employment Lawyer Should Know About Statistical Proof
I Was Told There Would Be No Math: What Every Employment Lawyer Should Know About Statistical Proof In Employment Matters Susan E. Dunnings Vice President, Associate General Counsel Lockheed Martin Corporation
More information13. Poisson Regression Analysis
136 Poisson Regression Analysis 13. Poisson Regression Analysis We have so far considered situations where the outcome variable is numeric and Normally distributed, or binary. In clinical work one often
More informationUsing the Delta Method to Construct Confidence Intervals for Predicted Probabilities, Rates, and Discrete Changes
Using the Delta Method to Construct Confidence Intervals for Predicted Probabilities, Rates, Discrete Changes JunXuJ.ScottLong Indiana University August 22, 2005 The paper provides technical details on
More informationRockefeller College University at Albany
Rockefeller College University at Albany PAD 705 Handout: Hypothesis Testing on Multiple Parameters In many cases we may wish to know whether two or more variables are jointly significant in a regression.
More informationDirect and indirect effects in a logit model
Department of Social Research Methodology Vrije Universiteit Amsterdam http://home.fsw.vu.nl/m.buis/ Outline The aim The Total Effect X Y The Total Effect parental class attend college The Indirect Effect
More informationWeight of Evidence Module
Formula Guide The purpose of the Weight of Evidence (WoE) module is to provide flexible tools to recode the values in continuous and categorical predictor variables into discrete categories automatically,
More informationTitle. Syntax. stata.com. fp Fractional polynomial regression. Estimation
Title stata.com fp Fractional polynomial regression Syntax Menu Description Options for fp Options for fp generate Remarks and examples Stored results Methods and formulas Acknowledgment References Also
More informationLinear Discrimination. Linear Discrimination. Linear Discrimination. Linearly Separable Systems Pairwise Separation. Steven J Zeil.
Steven J Zeil Old Dominion Univ. Fall 200 Discriminant-Based Classification Linearly Separable Systems Pairwise Separation 2 Posteriors 3 Logistic Discrimination 2 Discriminant-Based Classification Likelihood-based:
More informationand Gologit2: A Program for Ordinal Variables Last revised May 12, 2005 Page 1 ologit y x1 x2 x3 gologit2 y x1 x2 x3, pl lrforce
Gologit2: A Program for Generalized Logistic Regression/ Partial Proportional Odds Models for Ordinal Dependent Variables Richard Williams, Richard.A.Williams.5@ND.Edu Last revised May 12, 2005 [This document
More informationLecture 15. Endogeneity & Instrumental Variable Estimation
Lecture 15. Endogeneity & Instrumental Variable Estimation Saw that measurement error (on right hand side) means that OLS will be biased (biased toward zero) Potential solution to endogeneity instrumental
More informationChapter 18. Effect modification and interactions. 18.1 Modeling effect modification
Chapter 18 Effect modification and interactions 18.1 Modeling effect modification weight 40 50 60 70 80 90 100 male female 40 50 60 70 80 90 100 male female 30 40 50 70 dose 30 40 50 70 dose Figure 18.1:
More informationSAS Software to Fit the Generalized Linear Model
SAS Software to Fit the Generalized Linear Model Gordon Johnston, SAS Institute Inc., Cary, NC Abstract In recent years, the class of generalized linear models has gained popularity as a statistical modeling
More informationEconometrics I: Econometric Methods
Econometrics I: Econometric Methods Jürgen Meinecke Research School of Economics, Australian National University 24 May, 2016 Housekeeping Assignment 2 is now history The ps tute this week will go through
More informationWes, Delaram, and Emily MA751. Exercise 4.5. 1 p(x; β) = [1 p(xi ; β)] = 1 p(x. y i [βx i ] log [1 + exp {βx i }].
Wes, Delaram, and Emily MA75 Exercise 4.5 Consider a two-class logistic regression problem with x R. Characterize the maximum-likelihood estimates of the slope and intercept parameter if the sample for
More informationPrivate Forms of Unemployment Protection and Social Stratification. Alison Koslowski University of Edinburgh, UK
Private Forms of Unemployment Protection and Social Stratification in England and Scotland Alison Koslowski University of Edinburgh, UK Welfare Markets and Personal Risk Management in England and Scotland
More informationQuick Stata Guide by Liz Foster
by Liz Foster Table of Contents Part 1: 1 describe 1 generate 1 regress 3 scatter 4 sort 5 summarize 5 table 6 tabulate 8 test 10 ttest 11 Part 2: Prefixes and Notes 14 by var: 14 capture 14 use of the
More informationPart 2: Analysis of Relationship Between Two Variables
Part 2: Analysis of Relationship Between Two Variables Linear Regression Linear correlation Significance Tests Multiple regression Linear Regression Y = a X + b Dependent Variable Independent Variable
More informationFor more information on the Stata Journal, including information for authors, see the web page. http://www.stata-journal.com
The Stata Journal Editor H. Joseph Newton Department of Statistics Texas A & M University College Station, Texas 77843 979-845-3142; FAX 979-845-3144 jnewton@stata-journal.com Associate Editors Christopher
More informationGoodness of Fit Tests for Categorical Data: Comparing Stata, R and SAS
Goodness of Fit Tests for Categorical Data: Comparing Stata, R and SAS Rino Bellocco 1,2, Sc.D. Sara Algeri 1, MS 1 University of Milano-Bicocca, Milan, Italy & 2 Karolinska Institutet, Stockholm, Sweden
More informationLinear Regression Models with Logarithmic Transformations
Linear Regression Models with Logarithmic Transformations Kenneth Benoit Methodology Institute London School of Economics kbenoit@lse.ac.uk March 17, 2011 1 Logarithmic transformations of variables Considering
More informationDETERMINANTS OF CAPITAL ADEQUACY RATIO IN SELECTED BOSNIAN BANKS
DETERMINANTS OF CAPITAL ADEQUACY RATIO IN SELECTED BOSNIAN BANKS Nađa DRECA International University of Sarajevo nadja.dreca@students.ius.edu.ba Abstract The analysis of a data set of observation for 10
More information11 Logistic Regression - Interpreting Parameters
11 Logistic Regression - Interpreting Parameters Let us expand on the material in the last section, trying to make sure we understand the logistic regression model and can interpret Stata output. Consider
More informationPlease follow the directions once you locate the Stata software in your computer. Room 114 (Business Lab) has computers with Stata software
STATA Tutorial Professor Erdinç Please follow the directions once you locate the Stata software in your computer. Room 114 (Business Lab) has computers with Stata software 1.Wald Test Wald Test is used
More informationis paramount in advancing any economy. For developed countries such as
Introduction The provision of appropriate incentives to attract workers to the health industry is paramount in advancing any economy. For developed countries such as Australia, the increasing demand for
More informationTime varying (or time-dependent) covariates
Chapter 9 Time varying (or time-dependent) covariates References: Allison (*) p.138-153 Hosmer & Lemeshow Chapter 7, Section 3 Kalbfleisch & Prentice Section 5.3 Collett Chapter 7 Kleinbaum Chapter 6 Cox
More informationLogit Models for Binary Data
Chapter 3 Logit Models for Binary Data We now turn our attention to regression models for dichotomous data, including logistic regression and probit analysis. These models are appropriate when the response
More informationSensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS
Sensitivity Analysis 3 We have already been introduced to sensitivity analysis in Chapter via the geometry of a simple example. We saw that the values of the decision variables and those of the slack and
More informationMulticollinearity Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised January 13, 2015
Multicollinearity Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised January 13, 2015 Stata Example (See appendices for full example).. use http://www.nd.edu/~rwilliam/stats2/statafiles/multicoll.dta,
More informationCorrelated Random Effects Panel Data Models
INTRODUCTION AND LINEAR MODELS Correlated Random Effects Panel Data Models IZA Summer School in Labor Economics May 13-19, 2013 Jeffrey M. Wooldridge Michigan State University 1. Introduction 2. The Linear
More informationIntroduction to structural equation modeling using the sem command
Introduction to structural equation modeling using the sem command Gustavo Sanchez Senior Econometrician StataCorp LP Mexico City, Mexico Gustavo Sanchez (StataCorp) November 13, 2014 1 / 33 Outline Outline
More information25 Working with categorical data and factor variables
25 Working with categorical data and factor variables Contents 25.1 Continuous, categorical, and indicator variables 25.1.1 Converting continuous variables to indicator variables 25.1.2 Converting continuous
More information2. Linear regression with multiple regressors
2. Linear regression with multiple regressors Aim of this section: Introduction of the multiple regression model OLS estimation in multiple regression Measures-of-fit in multiple regression Assumptions
More informationThe first three steps in a logistic regression analysis with examples in IBM SPSS. Steve Simon P.Mean Consulting www.pmean.com
The first three steps in a logistic regression analysis with examples in IBM SPSS. Steve Simon P.Mean Consulting www.pmean.com 2. Why do I offer this webinar for free? I offer free statistics webinars
More informationLecture 14: GLM Estimation and Logistic Regression
Lecture 14: GLM Estimation and Logistic Regression Dipankar Bandyopadhyay, Ph.D. BMTRY 711: Analysis of Categorical Data Spring 2011 Division of Biostatistics and Epidemiology Medical University of South
More informationUsing Stata for One Sample Tests
Using Stata for One Sample Tests All of the one sample problems we have discussed so far can be solved in Stata via either (a) statistical calculator functions, where you provide Stata with the necessary
More informationNonlinear relationships Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised February 20, 2015
Nonlinear relationships Richard Williams, University of Notre Dame, http://www.nd.edu/~rwilliam/ Last revised February, 5 Sources: Berry & Feldman s Multiple Regression in Practice 985; Pindyck and Rubinfeld
More informationLogistic Regression. Jia Li. Department of Statistics The Pennsylvania State University. Logistic Regression
Logistic Regression Department of Statistics The Pennsylvania State University Email: jiali@stat.psu.edu Logistic Regression Preserve linear classification boundaries. By the Bayes rule: Ĝ(x) = arg max
More informationIt is important to bear in mind that one of the first three subscripts is redundant since k = i -j +3.
IDENTIFICATION AND ESTIMATION OF AGE, PERIOD AND COHORT EFFECTS IN THE ANALYSIS OF DISCRETE ARCHIVAL DATA Stephen E. Fienberg, University of Minnesota William M. Mason, University of Michigan 1. INTRODUCTION
More informationBasic Statistical and Modeling Procedures Using SAS
Basic Statistical and Modeling Procedures Using SAS One-Sample Tests The statistical procedures illustrated in this handout use two datasets. The first, Pulse, has information collected in a classroom
More informationUsing Stata 9 & Higher for OLS Regression Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised January 8, 2015
Using Stata 9 & Higher for OLS Regression Richard Williams, University of Notre Dame, http://www3.nd.edu/~rwilliam/ Last revised January 8, 2015 Introduction. This handout shows you how Stata can be used
More informationAn introduction to GMM estimation using Stata
An introduction to GMM estimation using Stata David M. Drukker StataCorp German Stata Users Group Berlin June 2010 1 / 29 Outline 1 A quick introduction to GMM 2 Using the gmm command 2 / 29 A quick introduction
More informationRecursive Algorithms. Recursion. Motivating Example Factorial Recall the factorial function. { 1 if n = 1 n! = n (n 1)! if n > 1
Recursion Slides by Christopher M Bourke Instructor: Berthe Y Choueiry Fall 007 Computer Science & Engineering 35 Introduction to Discrete Mathematics Sections 71-7 of Rosen cse35@cseunledu Recursive Algorithms
More informationAssociation Between Variables
Contents 11 Association Between Variables 767 11.1 Introduction............................ 767 11.1.1 Measure of Association................. 768 11.1.2 Chapter Summary.................... 769 11.2 Chi
More informationAddressing Alternative. Multiple Regression. 17.871 Spring 2012
Addressing Alternative Explanations: Multiple Regression 17.871 Spring 2012 1 Did Clinton hurt Gore example Did Clinton hurt Gore in the 2000 election? Treatment is not liking Bill Clinton 2 Bivariate
More informationLecture 3: Linear methods for classification
Lecture 3: Linear methods for classification Rafael A. Irizarry and Hector Corrada Bravo February, 2010 Today we describe four specific algorithms useful for classification problems: linear regression,
More informationA General Approach to Variance Estimation under Imputation for Missing Survey Data
A General Approach to Variance Estimation under Imputation for Missing Survey Data J.N.K. Rao Carleton University Ottawa, Canada 1 2 1 Joint work with J.K. Kim at Iowa State University. 2 Workshop on Survey
More informationDevelopment of the nomolog program and its evolution
Development of the nomolog program and its evolution Towards the implementation of a nomogram generator for the Cox regression Alexander Zlotnik, Telecom.Eng. Víctor Abraira Santos, PhD Ramón y Cajal University
More informationThe Stata Journal. Editor Nicholas J. Cox Geography Department Durham University South Road Durham City DH1 3LE UK n.j.cox@stata-journal.
The Stata Journal Editor H. Joseph Newton Department of Statistics Texas A & M University College Station, Texas 77843 979-845-3142; FAX 979-845-3144 jnewton@stata-journal.com Editor Nicholas J. Cox Geography
More information