Clarify Outline. Installation



Similar documents
What is Candidate Sampling

THE METHOD OF LEAST SQUARES THE METHOD OF LEAST SQUARES

Hedging Interest-Rate Risk with Duration

Chapter 15: Debt and Taxes

Portfolio Loss Distribution

Causal, Explanatory Forecasting. Analysis. Regression Analysis. Simple Linear Regression. Which is Independent? Forecasting

PSYCHOLOGICAL RESEARCH (PYC 304-C) Lecture 12

Binomial Link Functions. Lori Murray, Phil Munz

Peak Inverse Voltage

NPAR TESTS. One-Sample Chi-Square Test. Cell Specification. Observed Frequencies 1O i 6. Expected Frequencies 1EXP i 6

Forecasting the Direction and Strength of Stock Market Movement

Internet topology dynamics in ten minutes

How To Evaluate A Dia Fund Suffcency

7.5. Present Value of an Annuity. Investigate

Lecture 14: Implementing CAPM

Lecture 3: Force of Interest, Real Interest Rate, Annuity

Section 5.4 Annuities, Present Value, and Amortization

An Alternative Way to Measure Private Equity Performance

The OC Curve of Attribute Acceptance Plans

In our example i = r/12 =.0825/12 At the end of the first month after your payment is received your amount in the account, the balance, is

Lecture 2: Single Layer Perceptrons Kevin Swingler

An Interest-Oriented Network Evolution Mechanism for Online Communities

Regression Models for a Binary Response Using EXCEL and JMP

INVESTIGATION OF VEHICULAR USERS FAIRNESS IN CDMA-HDR NETWORKS

1. Measuring association using correlation and regression

Analysis of Premium Liabilities for Australian Lines of Business

Luby s Alg. for Maximal Independent Sets using Pairwise Independence

benefit is 2, paid if the policyholder dies within the year, and probability of death within the year is ).

Logistic Regression. Lecture 4: More classifiers and classes. Logistic regression. Adaboost. Optimization. Multiple class classification

Linear Circuits Analysis. Superposition, Thevenin /Norton Equivalent circuits

8.4. Annuities: Future Value. INVESTIGATE the Math Annuities: Future Value

Using Series to Analyze Financial Situations: Present Value

) of the Cell class is created containing information about events associated with the cell. Events are added to the Cell instance

STATISTICAL DATA ANALYSIS IN EXCEL

Module 2 LOSSLESS IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Statistical Methods to Develop Rating Models

Recurrence. 1 Definitions and main statements

A household-based Human Development Index. Kenneth Harttgen and Stephan Klasen Göttingen University, Germany

GRAVITY DATA VALIDATION AND OUTLIER DETECTION USING L 1 -NORM

A hybrid global optimization algorithm based on parallel chaos optimization and outlook algorithm

FINANCIAL MATHEMATICS. A Practical Guide for Actuaries. and other Business Professionals

Stock Profit Patterns

Risk-based Fatigue Estimate of Deep Water Risers -- Course Project for EM388F: Fracture Mechanics, Spring 2008

CHAPTER 5 RELATIONSHIPS BETWEEN QUANTITATIVE VARIABLES

Financial Mathemetics

YIELD CURVE FITTING 2.0 Constructing Bond and Money Market Yield Curves using Cubic B-Spline and Natural Cubic Spline Methodology.

Latent Class Regression. Statistics for Psychosocial Research II: Structural Models December 4 and 6, 2006

Solution: Let i = 10% and d = 5%. By definition, the respective forces of interest on funds A and B are. i 1 + it. S A (t) = d (1 dt) 2 1. = d 1 dt.

Forecasting the Demand of Emergency Supplies: Based on the CBR Theory and BP Neural Network

Figure 1. Inventory Level vs. Time - EOQ Problem

CS 2750 Machine Learning. Lecture 3. Density estimation. CS 2750 Machine Learning. Announcements

The Mathematical Derivation of Least Squares

The Application of Fractional Brownian Motion in Option Pricing

Application of Quasi Monte Carlo methods and Global Sensitivity Analysis in finance

(SOCIAL) COST-BENEFIT ANALYSIS IN A NUTSHELL

Support Vector Machines

14.74 Lecture 5: Health (2)

Answer: A). There is a flatter IS curve in the high MPC economy. Original LM LM after increase in M. IS curve for low MPC economy

PRIVATE SCHOOL CHOICE: THE EFFECTS OF RELIGIOUS AFFILIATION AND PARTICIPATION

Section 5.3 Annuities, Future Value, and Sinking Funds

Logistic Regression. Steve Kroon

This circuit than can be reduced to a planar circuit

Performance Analysis of Energy Consumption of Smartphone Running Mobile Hotspot Application

Quantization Effects in Digital Filters

Vasicek s Model of Distribution of Losses in a Large, Homogeneous Portfolio

1. Math 210 Finite Mathematics

Enabling P2P One-view Multi-party Video Conferencing

CHOLESTEROL REFERENCE METHOD LABORATORY NETWORK. Sample Stability Protocol

Basic Queueing Theory M/M/* Queues. Introduction

Problem Set 3. a) We are asked how people will react, if the interest rate i on bonds is negative.

n + d + q = 24 and.05n +.1d +.25q = 2 { n + d + q = 24 (3) n + 2d + 5q = 40 (2)

ECONOMICS OF PLANT ENERGY SAVINGS PROJECTS IN A CHANGING MARKET Douglas C White Emerson Process Management

THE DISTRIBUTION OF LOAN PORTFOLIO VALUE * Oldrich Alfons Vasicek

Inter-Ing INTERDISCIPLINARITY IN ENGINEERING SCIENTIFIC INTERNATIONAL CONFERENCE, TG. MUREŞ ROMÂNIA, November 2007.

Small-Signal Analysis of BJT Differential Pairs

Rotation Kinematics, Moment of Inertia, and Torque

Power-of-Two Policies for Single- Warehouse Multi-Retailer Inventory Systems with Order Frequency Discounts

How To Calculate The Accountng Perod Of Nequalty

Credit Limit Optimization (CLO) for Credit Cards

Institute of Informatics, Faculty of Business and Management, Brno University of Technology,Czech Republic

= i δ δ s n and PV = a n = 1 v n = 1 e nδ

Risk Model of Long-Term Production Scheduling in Open Pit Gold Mining

Measuring portfolio loss using approximation methods

Gender differences in revealed risk taking: evidence from mutual fund investors

Estimation of Dispersion Parameters in GLMs with and without Random Effects

The Full-Wave Rectifier

A Model of Private Equity Fund Compensation

PERRON FROBENIUS THEOREM

The Cox-Ross-Rubinstein Option Pricing Model

Correlated Noise Modeling - An Implementation into HICUM

Kiel Institute for World Economics Duesternbrooker Weg Kiel (Germany) Kiel Working Paper No. 1120

FINANCIAL MATHEMATICS

Transcription:

Clarfy Outlne Installaton The Basc Idea of Smulaton (and why t makes sense for substante nterpretaton) Components of Clarfy estsmp setx smq A Real Le Example Logt odel Contnuous IVs Bnary IVs Concludng Ponts odels Supported How to Clarfy other odels Installaton Type: net from http://gkng.harard.edu/clarfy

Installaton Type: net nstall clarfy Installaton clarfy wll ether nstall or tell you t s already nstalled.

The Basc Idea of Smulaton So you estmate a model and you want to say somethng substante wth quanttes of nterest: Predcted or Expected Values of DV = Frst Dfferences = X X + σ µ X µ The problem s that our s are uncertan! The soluton s we know how uncertan. ( σ) The Basc Idea of Smulaton: Parameters In order to capture the uncertanty we draw smulated s from the multarate* normal dstrbuton. Standard Deaton = σ Then we use these smulated parameters to calculate many draws of the same quantty of nterest. 3

4 = γ ( ) = γ V L L L we smulate parameters wth draws from the multarate normal dstrbuton ( ) V N γ γ L. Choose a startng scenaro X c.. Draw one alue of and compute. 3. Smulate the outcome by takng a random draw from. 4. Repeat tmes to get the dstrbuton of. γ ( ) θ c X c g = c Y ( ) θ c f Y c ( ) ( ) θ θ X g f Y = ( ) ( ) L + + + = = 0 µ σ µ X X X g N Y The Basc Idea of Smulaton: Quanttes of Interest In practce Components of Clarfy estsmp estmates the model and smulates the parameters Ths command must precede your regresson command e.g.: estsmp logt y x x x3 x4 Ths wll sae smulated s to your dataset! setx sets the alues for the IVs (the Xs) Used after model estmaton to set alues of the Xs e.g.: setx x mean x p0 x3.4 x4[6] nocwdel functons = mean medan mn max p# math # macro arname[#] reset alues by re-ssung the command e.g.: setx x medan smq smulates the quanttes of nterest Automates the smulaton of quanttes of nterest for the X alues you just set. e.g.: smq pral() e.g.: smq fd(pral()) changex(x4 p5 p75) There are lots of optons: Explore on your own!

Onto the achnes. clear the current data. Increase memory Type: set mem 50m 3. Re-open the NES data set Type: use "I:\general\Spost&Clarfy\NES 99.dta " We ll do a Smple Logt Type: estsmp logt ote pd deology gulfwarworth educaton sms(500) genname(smb) Note that Clarfy has added 5 new arables to our data set. 5

. Summarze the new arables to see that they make sense.. Then set all Xs to ther means so we can start.. Type: sum smb-smb5. Type: setx mean Tables of Frst Dfferences Type: smq pral() Type: setx pd -3 Type: smq pral() Type: setx pd - Type: smq pral() Or Type: fd(pral()) changex(pd 3 )) 6

Probablty of Bush Vote as PID Vares Party ID -3 - - 0 3 P(Bush) 0.049 0.089 0.56 0.63 0.408 0.57 0.79 95% CI (.05.09) (.056.4) (..3) (.04.330) (.33.487) (.475.669) (.63.88) And snce we know P(Bush) s.73(..339) when eery arable s held at ts mean we can calculate percentage changes ourseles to ncrease substante nterpretablty. But a pcture s worth a thousand words so t would be nce to use Clarfy to generate pctures lke ths: From Kng et al. AJPS 000 Adanced Graphng wth Clarfy 7

P(Bush) Vote 0..4.6 5 0 5 0 Educaton phwar/plowar phnowar/plonowar mdwar mdnowar erson 8.0 set more off # delmt; gen plowar=.; gen phwar=.; gen eduaxs = _n + 5 n /; setx gulfwarworth deology mean pd mean; local = 6; whle `' <= 7 {; setx educaton `'; smq pral() genpr(p); _pctle p p(.597.5); replace plowar = r(r) feduaxs==`'; replace phwar = r(r) feduaxs==`'; drop p; local = `'+; }; gen plonowar=.; gen phnowar=.; setx gulfwarworth 0 deology mean pd mean; local = 6; whle `' <= 7 {; setx educaton `'; smq pral() genpr(p); _pctle p p(.597.5); replace plonowar = r(r) feduaxs==`'; replace phnowar = r(r) feduaxs==`'; drop p; local = `'+; }; gen eduaxs = eduaxs -.; sort eduaxs; gen mdwar = (plowar+phwar)/; gen mdnowar = (plonowar+phnowar)/; graph twoway rspke phwar plowar eduaxs lne mdwar eduaxs rspke phnowar plonowar eduaxs lne mdnowar eduaxs yttle(p(bush) Vote) xttle(educaton); 8

Concluson odels Currently Supported by Clarfy regress logt probt ologt oprobt mlogt posson nbreg sureg webull But you really don t need Clarfy to do ths so you can smulate quanttes of nterest for any model! Easy to smulate parameters because Stata saes them after estmaton! Program the correct lnk functon yourself! 9