8.1 Example: Hormone treatment of steers Example with different slopes Example: Concentration of a hormone in cattle...

Size: px
Start display at page:

Download "8.1 Example: Hormone treatment of steers Example with different slopes Example: Concentration of a hormone in cattle..."

Transcription

1 /MIXED LINEAR MODELS PREPARED BY THE STATISTICS GROUPS AT IMM, DTU AND KU-LIFE Module 8: SAS 8.1 Example: Hormone treatment of steers Example with different slopes Example: Concentration of a hormone in cattle Example: Hormone treatment of steers. Import the data set into SAS from kidney as described in Module 1. The plot of the kidney fat weight versus the initial weight is constructed by the following lines: axis1 label=( Initial weight (kg) ); axis2 label=( Weight of kidney fat (g) ); proc gplot data=mixed.kidney gout=gout; plot Y*weight=treat/ haxis=axis1 vaxis=axis2; As already listed in the main part of this module the starting different slopes model is run in SAS by: model Y = weight treat weight*treat/ddfm=satterth; and the equal slopes model by: 02429/Mixed Linear Models Last modified August 23, 2011

2 Module 8: SAS 2 model Y = weight treat /ddfm=satterth; The model IGNORING the weight covariate is run by: model Y = treat /ddfm=satterth; The final equal slopes analysis with post hoc analysis is carried out by: model Y = weight treat /noint solution ddfm=satterth; lsmeans treat / CL pdiff; The NOINT option simplifies the SAS output such that α(1),..., α(4) are directly available in the output. The option merely changes the parametrization used by SAS: Instead of providing µ (the intercept ) being really the intercept value for treatment 4 and then three differences to this for treatments 1, 2 and 3, it provides the four treatment values directly. 8.2 Example with different slopes Import the data set into SAS from bib as described in Module 1. The lines to produce the basic plot of Y versus X are: axis1 label=( X ); axis2 label=(angle=90 X ); proc gplot data=mixed.bib; plot Y*X=trt/ haxis=axis1 vaxis=axis2; The lines to fit the different slopes model are:

3 Module 8: SAS 3 model y= trt x x*trt/ ddfm=satterth; And the same model with the relevant post hoc analysis: model y= trt x*trt/ noint solution ddfm=satterth CL outp=fit; lsmeans trt / AT X =17 pdiff CL; lsmeans trt / pdiff CL; lsmeans trt / AT X=37 pdiff CL; The NOINT option is used again for the sake of simplifying the outcome of the SOLU- TION option. For the same reason the main effect of x is omitted from the MODEL statement. This does NOT change the model, but has the same effect on the slopes information as the NOINT option has on the intercept values: The four slopes are given directly instead of indirectly. The OUTP=FIT option saves the predicted values of the model (including the BLUP estimates of the random block effects). These will be used for adding the expected lines to the scatter plot, see below. Note how the AT X=17 option for the LSMEANS statement easily provides the expected values (and differences when the PDIFF option is used) for this specific value of the covariate. Adding the four expected lines to the plot requires a little data handling. In the following a variable is constructed for each treatment that contains the observations for that specific treatment and missing values for the other three treatments (y1,y2,y3,y4) and similarly for the predicted values (p1,p2,p3,p4): data fit; set fit; if trt=1 then do; y1=y; p1=pred; end; if trt=2 then do; y2=y; p2=pred; end; if trt=3 then do; y3=y; p3=pred; end; if trt=4 then do; y4=y; p4=pred; end; Next the following plot lines will do the job: symbol5 v=none i=rl c=red; symbol6 v=none i=rl c=green; symbol7 v=none i=rl c=blue;

4 Module 8: SAS 4 symbol8 v=none i=rl c=orange; axis1 label=( X ); axis2 label=(angle=90 Y ); proc gplot data=fit; plot y1*x=1 y2*x=2 y3*x=3 y4*x=4 p1*x=5 p2*x=6 p3*x=7 p4*x=8 / overlay haxis=axis1 vaxis=axis2; Finally, the post hoc analysis focusing on the slopes is obtained by adding some ES- TIMATE statements: model y= trt x x*trt/ddfm=satterth; estimate b1-b2 x*trt ; estimate b1-b3 x*trt ; estimate b1-b4 x*trt ; estimate b2-b3 x*trt ; estimate b2-b4 x*trt ; estimate b3-b4 x*trt ; 8.3 Example: Concentration of a hormone in cattle Import the data set into SAS from hormbase as described in Module 1. The lines to produce the basic scatter plot are: axis1 label=( Inital concentration ); axis2 label=(angle=90 Final concentration ); proc gplot data=mixed.hormbase; plot final*initial=feed/ haxis=axis1 vaxis=axis2; The lines to do the simple one-way analysis of variance for the final concentration and the difference between the final and initial concentrations are given by: proc glm data=mixed.hormbase; class feed; model final D =feed ;

5 Module 8: SAS 5 The equal slopes analysis of covariance model (using the initial concentration as a baseline measurement) is carried out by: proc mixed data=mixed.hormbase; class feed; model final =initial feed /ddfm=satterth solution; lsmeans feed /pdiff CL;

Homework 0 Key (not to be handed in) due? Jan. 10

Homework 0 Key (not to be handed in) due? Jan. 10 Homework 0 Key (not to be handed in) due? Jan. 10 The results of running diamond.sas is listed below: Note: I did slightly reduce the size of some of the graphs so that they would fit on the page. The

More information

Chapter 8. Sampling and Estimation. 8.1 Random samples

Chapter 8. Sampling and Estimation. 8.1 Random samples Chapter 8 Sampling and Estimation We discuss in this chapter two topics that are critical to most statistical analyses. The first is random sampling, which is a method for obtaining observations from a

More information

Appropriate exploratory analysis including profile plots and transformation of variables (i.e. log(nihss)) as appropriate will occur.

Appropriate exploratory analysis including profile plots and transformation of variables (i.e. log(nihss)) as appropriate will occur. Final Examination Project Biostatistics 581 Winter 2009 William Meurer, M.D. Introduction: The NINDS tpa stroke study was published in 1995. This medication remains the only FDA approved medication for

More information

EXST7015: Multiple Regression from Snedecor & Cochran (1967) RAW DATA LISTING

EXST7015: Multiple Regression from Snedecor & Cochran (1967) RAW DATA LISTING Multiple (Linear) Regression Introductory example Page 1 1 options ps=256 ls=132 nocenter nodate nonumber; 3 DATA ONE; 4 TITLE1 ''; 5 INPUT X1 X2 X3 Y; 6 **** LABEL Y ='Plant available phosphorus' 7 X1='Inorganic

More information

Topic 30: Random Effects Modeling

Topic 30: Random Effects Modeling Topic 30: Random Effects Modeling Outline One-way random effects model Data Model Inference Data for one-way random effects model Y, the response variable Factor with levels i = 1 to r Y ij is the j th

More information

ECG 752: Econometrics II Spring Assessed Computer Assignment 3: Answer Key

ECG 752: Econometrics II Spring Assessed Computer Assignment 3: Answer Key ECG 752: Econometrics II Spring 2005 Assessed Computer Assignment 3: Answer Key Question 1 The time series plots of x(d), x(bw) and x(m) are presented below. 1 A common characteristic of all series is

More information

Topic 8: Model Diagnostics

Topic 8: Model Diagnostics Topic 8: Model Diagnostics Outline Diagnostics to check model assumptions Diagnostics concerning X Diagnostics using the residuals Diagnostics and remedial measures Diagnostics: look at the data to diagnose

More information

Algebra 1 Unit 3: Writing Equations

Algebra 1 Unit 3: Writing Equations Lesson 8: Making Predictions and Creating Scatter Plots The table below represents the cost of a car over the recent years. Year Cost of a Car (in US dollars) 2000 22,500 2002 26,000 2004 32,000 2006 37,500

More information

f x f x f x f x x 5 3 y-intercept: y-intercept: y-intercept: y-intercept: y-intercept of a linear function written in function notation

f x f x f x f x x 5 3 y-intercept: y-intercept: y-intercept: y-intercept: y-intercept of a linear function written in function notation Questions/ Main Ideas: Algebra Notes TOPIC: Function Translations and y-intercepts Name: Period: Date: What is the y-intercept of a graph? The four s given below are written in notation. For each one,

More information

7. For the table that follows, answer the following questions: x y 1-1/4 2-1/2 3-3/4 4

7. For the table that follows, answer the following questions: x y 1-1/4 2-1/2 3-3/4 4 7. For the table that follows, answer the following questions: x y 1-1/4 2-1/2 3-3/4 4 - Would the correlation between x and y in the table above be positive or negative? The correlation is negative. -

More information

Lecture 21: Logit Models for Multinomial Responses Continued

Lecture 21: Logit Models for Multinomial Responses Continued Lecture 21: Logit Models for Multinomial Responses Continued Dipankar Bandyopadhyay, Ph.D. BMTRY 711: Analysis of Categorical Data Spring 2011 Division of Biostatistics and Epidemiology Medical University

More information

Hierarchical Generalized Linear Models. Measurement Incorporated Hierarchical Linear Models Workshop

Hierarchical Generalized Linear Models. Measurement Incorporated Hierarchical Linear Models Workshop Hierarchical Generalized Linear Models Measurement Incorporated Hierarchical Linear Models Workshop Hierarchical Generalized Linear Models So now we are moving on to the more advanced type topics. To begin

More information

Homework Assignment Section 3

Homework Assignment Section 3 Homework Assignment Section 3 Tengyuan Liang Business Statistics Booth School of Business Problem 1 A company sets different prices for a particular stereo system in eight different regions of the country.

More information

Point-Biserial and Biserial Correlations

Point-Biserial and Biserial Correlations Chapter 302 Point-Biserial and Biserial Correlations Introduction This procedure calculates estimates, confidence intervals, and hypothesis tests for both the point-biserial and the biserial correlations.

More information

3.3 rates and slope intercept form ink.notebook. October 23, page 103. page 104. page Rates and Slope Intercept Form

3.3 rates and slope intercept form ink.notebook. October 23, page 103. page 104. page Rates and Slope Intercept Form 3.3 rates and slope intercept form ink.notebook page 103 page 104 page 102 3.3 Rates and Slope Intercept Form Lesson Objectives 3.3 Rates and Slope-Intercept Form Press the tabs to view details. Standards

More information

Epidemiology Principle of Biostatistics Chapter 5 Probability Distributions (continued) John Koval

Epidemiology Principle of Biostatistics Chapter 5 Probability Distributions (continued) John Koval Epidemiology 9509 Principle of Biostatistics Chapter 5 Probability Distributions (continued) John Koval Department of Epidemiology and Biostatistics University of Western Ontario What was covered previously

More information

Gamma Distribution Fitting

Gamma Distribution Fitting Chapter 552 Gamma Distribution Fitting Introduction This module fits the gamma probability distributions to a complete or censored set of individual or grouped data values. It outputs various statistics

More information

DUE DATE : 3pm Tuesday 16 March MATERIAL REQUIRED : ANSWER SHEET Refer to page 7

DUE DATE : 3pm Tuesday 16 March MATERIAL REQUIRED : ANSWER SHEET Refer to page 7 Page 1 of 7 ASSIGNMENT 1 st SEMESTER : FINANCIAL MANAGEMENT (FM) STUDY UNITS COVERED : MODULES 1-10 DUE DATE : 3pm Tuesday 16 March 2010 TOTAL MARKS : 100 MATERIAL REQUIRED : ANSWER SHEET Refer to page

More information

Tests for One Variance

Tests for One Variance Chapter 65 Introduction Occasionally, researchers are interested in the estimation of the variance (or standard deviation) rather than the mean. This module calculates the sample size and performs power

More information

Mixed Models Tests for the Slope Difference in a 3-Level Hierarchical Design with Random Slopes (Level-3 Randomization)

Mixed Models Tests for the Slope Difference in a 3-Level Hierarchical Design with Random Slopes (Level-3 Randomization) Chapter 375 Mixed Models Tests for the Slope Difference in a 3-Level Hierarchical Design with Random Slopes (Level-3 Randomization) Introduction This procedure calculates power and sample size for a three-level

More information

The FREQ Procedure. Table of Sex by Gym Sex(Sex) Gym(Gym) No Yes Total Male Female Total

The FREQ Procedure. Table of Sex by Gym Sex(Sex) Gym(Gym) No Yes Total Male Female Total Jenn Selensky gathered data from students in an introduction to psychology course. The data are weights, sex/gender, and whether or not the student worked-out in the gym. Here is the output from a 2 x

More information

σ e, which will be large when prediction errors are Linear regression model

σ e, which will be large when prediction errors are Linear regression model Linear regression model we assume that two quantitative variables, x and y, are linearly related; that is, the population of (x, y) pairs are related by an ideal population regression line y = α + βx +

More information

Rand Final Pop 2. Name: Class: Date: Multiple Choice Identify the choice that best completes the statement or answers the question.

Rand Final Pop 2. Name: Class: Date: Multiple Choice Identify the choice that best completes the statement or answers the question. Name: Class: Date: Rand Final Pop 2 Multiple Choice Identify the choice that best completes the statement or answers the question. Scenario 12-1 A high school guidance counselor wonders if it is possible

More information

Economics 102 Homework #7 Due: December 7 th at the beginning of class

Economics 102 Homework #7 Due: December 7 th at the beginning of class Economics 102 Homework #7 Due: December 7 th at the beginning of class Complete all of the problems. Please do not write your answers on this sheet. Show all of your work. 1. The economy starts in long

More information

Analysis of 2x2 Cross-Over Designs using T-Tests for Non-Inferiority

Analysis of 2x2 Cross-Over Designs using T-Tests for Non-Inferiority Chapter 235 Analysis of 2x2 Cross-Over Designs using -ests for Non-Inferiority Introduction his procedure analyzes data from a two-treatment, two-period (2x2) cross-over design where the goal is to demonstrate

More information

Mixed models in R using the lme4 package Part 3: Inference based on profiled deviance

Mixed models in R using the lme4 package Part 3: Inference based on profiled deviance Mixed models in R using the lme4 package Part 3: Inference based on profiled deviance Douglas Bates Department of Statistics University of Wisconsin - Madison Madison January 11, 2011

More information

ECMB02F -- Problem Set 2 Solutions

ECMB02F -- Problem Set 2 Solutions 1 ECMB02F -- Problem Set 2 Solutions 1. See Nicholson 2a) If P F = 2, P H = 2, the budget line must have a slope of -P F /P H or -1. This means that the only points that matter for this part of the problem

More information

Chapter 14. Descriptive Methods in Regression and Correlation. Copyright 2016, 2012, 2008 Pearson Education, Inc. Chapter 14, Slide 1

Chapter 14. Descriptive Methods in Regression and Correlation. Copyright 2016, 2012, 2008 Pearson Education, Inc. Chapter 14, Slide 1 Chapter 14 Descriptive Methods in Regression and Correlation Copyright 2016, 2012, 2008 Pearson Education, Inc. Chapter 14, Slide 1 Section 14.1 Linear Equations with One Independent Variable Copyright

More information

Simplifying and Graphing Rational Functions

Simplifying and Graphing Rational Functions Algebra 2/Trig Unit 5 Notes Packet Name: Period: # Simplifying and Graphing Rational Functions 1. Pg 543 #11-19 odd and Pg 550 #11-19 odd 2. Pg 543 #12-18 even and Pg 550 #12-18 even 3. Worksheet 4. Worksheet

More information

Chapter 6 Analyzing Accumulated Change: Integrals in Action

Chapter 6 Analyzing Accumulated Change: Integrals in Action Chapter 6 Analyzing Accumulated Change: Integrals in Action 6. Streams in Business and Biology You will find Excel very helpful when dealing with streams that are accumulated over finite intervals. Finding

More information

Cost of Capital (represents risk)

Cost of Capital (represents risk) Cost of Capital (represents risk) Cost of Equity Capital - From the shareholders perspective, the expected return is the cost of equity capital E(R i ) is the return needed to make the investment = the

More information

Section 1.4: Slope-Intercept Form

Section 1.4: Slope-Intercept Form Section 1.4: Slope-Intercept Form Objective: Give the equation of a line with a known slope and y-intercept. When graphing a line we found one method we could use is to make a table of values. However,

More information

Tests for Two Variances

Tests for Two Variances Chapter 655 Tests for Two Variances Introduction Occasionally, researchers are interested in comparing the variances (or standard deviations) of two groups rather than their means. This module calculates

More information

Laplace approximation

Laplace approximation NPFL108 Bayesian inference Approximate Inference Laplace approximation Filip Jurčíček Institute of Formal and Applied Linguistics Charles University in Prague Czech Republic Home page: http://ufal.mff.cuni.cz/~jurcicek

More information

Quadratic Modeling Elementary Education 10 Business 10 Profits

Quadratic Modeling Elementary Education 10 Business 10 Profits Quadratic Modeling Elementary Education 10 Business 10 Profits This week we are asking elementary education majors to complete the same activity as business majors. Our first goal is to give elementary

More information

R & R Study. Chapter 254. Introduction. Data Structure

R & R Study. Chapter 254. Introduction. Data Structure Chapter 54 Introduction A repeatability and reproducibility (R & R) study (sometimes called a gauge study) is conducted to determine if a particular measurement procedure is adequate. If the measurement

More information

Appendix. A.1 Independent Random Effects (Baseline)

Appendix. A.1 Independent Random Effects (Baseline) A Appendix A.1 Independent Random Effects (Baseline) 36 Table 2: Detailed Monte Carlo Results Logit Fixed Effects Clustered Random Effects Random Coefficients c Coeff. SE SD Coeff. SE SD Coeff. SE SD Coeff.

More information

Business Statistics: A First Course

Business Statistics: A First Course Business Statistics: A First Course Fifth Edition Chapter 12 Correlation and Simple Linear Regression Business Statistics: A First Course, 5e 2009 Prentice-Hall, Inc. Chap 12-1 Learning Objectives In this

More information

To be two or not be two, that is a LOGISTIC question

To be two or not be two, that is a LOGISTIC question MWSUG 2016 - Paper AA18 To be two or not be two, that is a LOGISTIC question Robert G. Downer, Grand Valley State University, Allendale, MI ABSTRACT A binary response is very common in logistic regression

More information

$0.00 $0.50 $1.00 $1.50 $2.00 $2.50 $3.00 $3.50 $4.00 Price

$0.00 $0.50 $1.00 $1.50 $2.00 $2.50 $3.00 $3.50 $4.00 Price Orange Juice Sales and Prices In this module, you will be looking at sales and price data for orange juice in grocery stores. You have data from 83 stores on three brands (Tropicana, Minute Maid, and the

More information

Linear regression model

Linear regression model Regression Model Assumptions (Solutions) STAT-UB.0003: Regression and Forecasting Models Linear regression model 1. Here is the least squares regression fit to the Zagat restaurant data: 10 15 20 25 10

More information

Unit 3: Writing Equations Chapter Review

Unit 3: Writing Equations Chapter Review Unit 3: Writing Equations Chapter Review Part 1: Writing Equations in Slope Intercept Form. (Lesson 1) 1. Write an equation that represents the line on the graph. 2. Write an equation that has a slope

More information

SJAM MPM 1D Unit 5 Day 13

SJAM MPM 1D Unit 5 Day 13 Homework 1. Identify the dependent variable. a) The distance a person walks depends on the time they walk. b) The recipe for 1 muffins requires cups of flour. c) Houses need 1 fire alarm per floor.. Identify

More information

CPR-no: 14th January 2013 Managerial Economics Mid-term

CPR-no: 14th January 2013 Managerial Economics Mid-term Question 1: The market equilibrium can be found by setting demand = supply 20-0,00001Q D =5+0,000005Q S 15 =0,000015Q Q = 1000000 P= 20-0,00001*1000000 = 10 Question 2: The price equilibrium at this point

More information

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay. Solutions to Final Exam

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay. Solutions to Final Exam The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2012, Mr. Ruey S. Tsay Solutions to Final Exam Problem A: (40 points) Answer briefly the following questions. 1. Consider

More information

Random Variables and Probability Distributions

Random Variables and Probability Distributions Chapter 3 Random Variables and Probability Distributions Chapter Three Random Variables and Probability Distributions 3. Introduction An event is defined as the possible outcome of an experiment. In engineering

More information

Activity #17b: Central Limit Theorem #2. 1) Explain the Central Limit Theorem in your own words.

Activity #17b: Central Limit Theorem #2. 1) Explain the Central Limit Theorem in your own words. Activity #17b: Central Limit Theorem #2 1) Explain the Central Limit Theorem in your own words. Importance of the CLT: You can standardize and use normal distribution tables to calculate probabilities

More information

Mean Note: Weights were measured to the nearest 0.1 kg.

Mean Note: Weights were measured to the nearest 0.1 kg. Purpose of the Sign Test Supplement 16A: Sign Test The sign test is a simple and versatile test that requires few assumptions. It is based on the binomial distribution. The test involves simply counting

More information

proc genmod; model malform/total = alcohol / dist=bin link=identity obstats; title 'Table 2.7'; title2 'Identity Link';

proc genmod; model malform/total = alcohol / dist=bin link=identity obstats; title 'Table 2.7'; title2 'Identity Link'; BIOS 6244 Analysis of Categorical Data Assignment 5 s 1. Consider Exercise 4.4, p. 98. (i) Write the SAS code, including the DATA step, to fit the linear probability model and the logit model to the data

More information

22S:105 Statistical Methods and Computing. Two independent sample problems. Goal of inference: to compare the characteristics of two different

22S:105 Statistical Methods and Computing. Two independent sample problems. Goal of inference: to compare the characteristics of two different 22S:105 Statistical Methods and Computing Two independent-sample t-tests Lecture 17 Apr. 5, 2013 1 2 Two independent sample problems Goal of inference: to compare the characteristics of two different populations

More information

GRAPHS IN ECONOMICS. Appendix. Key Concepts. Graphing Data

GRAPHS IN ECONOMICS. Appendix. Key Concepts. Graphing Data Appendix GRAPHS IN ECONOMICS Key Concepts Graphing Data Graphs represent quantity as a distance on a line. On a graph, the horizontal scale line is the x-axis, the vertical scale line is the y-axis, and

More information

Chapter 4. Determination of Income and Employment 4.1 AGGREGATE DEMAND AND ITS COMPONENTS

Chapter 4. Determination of Income and Employment 4.1 AGGREGATE DEMAND AND ITS COMPONENTS Determination of Income and Employment Chapter 4 We have so far talked about the national income, price level, rate of interest etc. in an ad hoc manner without investigating the forces that govern their

More information

A STATISTICAL ANALYSIS OF GDP AND FINAL CONSUMPTION USING SIMPLE LINEAR REGRESSION. THE CASE OF ROMANIA

A STATISTICAL ANALYSIS OF GDP AND FINAL CONSUMPTION USING SIMPLE LINEAR REGRESSION. THE CASE OF ROMANIA A STATISTICAL ANALYSIS OF GDP AND FINAL CONSUMPTION USING SIMPLE LINEAR REGRESSION. THE CASE OF ROMANIA 990 200 Bălăcescu Aniela Lecturer PhD, Constantin Brancusi University of Targu Jiu, Faculty of Economics

More information

1. A player of Monopoly owns properties with respective rents $90, $150, $200, $150. Anyone landing on a given property has to pay the rent.

1. A player of Monopoly owns properties with respective rents $90, $150, $200, $150. Anyone landing on a given property has to pay the rent. Chapter 3. Discrete random variables (and related). topic page pmf 91 cdf 95 E X 101 E h(x) 103 Var X 105 sd X 105 Binomial 111 mean of 113 Var of 113 sd of 113 Poisson 121 as a limit 122 mean of 123 Var

More information

Regression. Lecture Notes VII

Regression. Lecture Notes VII Regression Lecture Notes VII Statistics 112, Fall 2002 Outline Predicting based on Use of the conditional mean (the regression function) to make predictions. Prediction based on a sample. Regression line.

More information

Business Statistics 41000: Homework # 2

Business Statistics 41000: Homework # 2 Business Statistics 41000: Homework # 2 Drew Creal Due date: At the beginning of lecture # 5 Remarks: These questions cover Lectures #3 and #4. Question # 1. Discrete Random Variables and Their Distributions

More information

ME3620. Theory of Engineering Experimentation. Spring Chapter III. Random Variables and Probability Distributions.

ME3620. Theory of Engineering Experimentation. Spring Chapter III. Random Variables and Probability Distributions. ME3620 Theory of Engineering Experimentation Chapter III. Random Variables and Probability Distributions Chapter III 1 3.2 Random Variables In an experiment, a measurement is usually denoted by a variable

More information

Tests for the Difference Between Two Linear Regression Intercepts

Tests for the Difference Between Two Linear Regression Intercepts Chapter 853 Tests for the Difference Between Two Linear Regression Intercepts Introduction Linear regression is a commonly used procedure in statistical analysis. One of the main objectives in linear regression

More information

Mendelian Randomization with a Continuous Outcome

Mendelian Randomization with a Continuous Outcome Chapter 85 Mendelian Randomization with a Continuous Outcome Introduction This module computes the sample size and power of the causal effect in Mendelian randomization studies with a continuous outcome.

More information

CHAPTER 8: INDEX MODELS

CHAPTER 8: INDEX MODELS CHTER 8: INDEX ODELS CHTER 8: INDEX ODELS ROBLE SETS 1. The advantage of the index model, compared to the arkoitz procedure, is the vastly reduced number of estimates required. In addition, the large number

More information

MLC at Boise State Lines and Rates Activity 1 Week #2

MLC at Boise State Lines and Rates Activity 1 Week #2 Lines and Rates Activity 1 Week #2 This activity will use slopes to calculate marginal profit, revenue and cost of functions. What is Marginal? Marginal cost is the cost added by producing one additional

More information

Discrete Random Variables and Probability Distributions

Discrete Random Variables and Probability Distributions Chapter 4 Discrete Random Variables and Probability Distributions 4.1 Random Variables A quantity resulting from an experiment that, by chance, can assume different values. A random variable is a variable

More information

CS Homework 4: Expectations & Empirical Distributions Due Date: October 9, 2018

CS Homework 4: Expectations & Empirical Distributions Due Date: October 9, 2018 CS1450 - Homework 4: Expectations & Empirical Distributions Due Date: October 9, 2018 Question 1 Consider a set of n people who are members of an online social network. Suppose that each pair of people

More information

1 Small Sample CI for a Population Mean µ

1 Small Sample CI for a Population Mean µ Lecture 7: Small Sample Confidence Intervals Based on a Normal Population Distribution Readings: Sections 7.4-7.5 1 Small Sample CI for a Population Mean µ The large sample CI x ± z α/2 s n was constructed

More information

is the bandwidth and controls the level of smoothing of the estimator, n is the sample size and

is the bandwidth and controls the level of smoothing of the estimator, n is the sample size and Paper PH100 Relationship between Total charges and Reimbursements in Outpatient Visits Using SAS GLIMMIX Chakib Battioui, University of Louisville, Louisville, KY ABSTRACT The purpose of this paper is

More information

Statistical Models of Stocks and Bonds. Zachary D Easterling: Department of Economics. The University of Akron

Statistical Models of Stocks and Bonds. Zachary D Easterling: Department of Economics. The University of Akron Statistical Models of Stocks and Bonds Zachary D Easterling: Department of Economics The University of Akron Abstract One of the key ideas in monetary economics is that the prices of investments tend to

More information

WEB APPENDIX 8A 7.1 ( 8.9)

WEB APPENDIX 8A 7.1 ( 8.9) WEB APPENDIX 8A CALCULATING BETA COEFFICIENTS The CAPM is an ex ante model, which means that all of the variables represent before-the-fact expected values. In particular, the beta coefficient used in

More information

WEEK 2 REVIEW. Straight Lines (1.2) Linear Models (1.3) Intersection Points (1.4) Least Squares (1.5)

WEEK 2 REVIEW. Straight Lines (1.2) Linear Models (1.3) Intersection Points (1.4) Least Squares (1.5) WEEK 2 REVIEW Straight Lines (1.2) Linear Models (1.3) Intersection Points (1.4) Least Squares (1.5) 1 STRAIGHT LINES SLOPE A VERTICAL line has NO SLOPE. All other lines have a slope given by m = rise

More information

Tests for Two Means in a Multicenter Randomized Design

Tests for Two Means in a Multicenter Randomized Design Chapter 481 Tests for Two Means in a Multicenter Randomized Design Introduction In a multicenter design with a continuous outcome, a number of centers (e.g. hospitals or clinics) are selected at random

More information

Chapter 7 1. Random Variables

Chapter 7 1. Random Variables Chapter 7 1 Random Variables random variable numerical variable whose value depends on the outcome of a chance experiment - discrete if its possible values are isolated points on a number line - continuous

More information

STA2601. Tutorial letter 105/2/2018. Applied Statistics II. Semester 2. Department of Statistics STA2601/105/2/2018 TRIAL EXAMINATION PAPER

STA2601. Tutorial letter 105/2/2018. Applied Statistics II. Semester 2. Department of Statistics STA2601/105/2/2018 TRIAL EXAMINATION PAPER STA2601/105/2/2018 Tutorial letter 105/2/2018 Applied Statistics II STA2601 Semester 2 Department of Statistics TRIAL EXAMINATION PAPER Define tomorrow. university of south africa Dear Student Congratulations

More information

Modeling of Claim Counts with k fold Cross-validation

Modeling of Claim Counts with k fold Cross-validation Modeling of Claim Counts with k fold Cross-validation Alicja Wolny Dominiak 1 Abstract In the ratemaking process the ranking, which takes into account the number of claims generated by a policy in a given

More information

Portfolio Risk Management and Linear Factor Models

Portfolio Risk Management and Linear Factor Models Chapter 9 Portfolio Risk Management and Linear Factor Models 9.1 Portfolio Risk Measures There are many quantities introduced over the years to measure the level of risk that a portfolio carries, and each

More information

SAS/STAT 14.1 User s Guide. The LATTICE Procedure

SAS/STAT 14.1 User s Guide. The LATTICE Procedure SAS/STAT 14.1 User s Guide The LATTICE Procedure This document is an individual chapter from SAS/STAT 14.1 User s Guide. The correct bibliographic citation for this manual is as follows: SAS Institute

More information

Financial Time Series Analysis (FTSA)

Financial Time Series Analysis (FTSA) Financial Time Series Analysis (FTSA) Lecture 6: Conditional Heteroscedastic Models Few models are capable of generating the type of ARCH one sees in the data.... Most of these studies are best summarized

More information

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise.

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise. Math 224 Q Exam 3A Fall 217 Tues Dec 12 Version A Problem 1. Let X be the continuous random variable defined by the following pdf: { 1 x/2 when x 2, f(x) otherwise. (a) Compute the mean µ E[X]. E[X] x

More information

rise m x run The slope is a ratio of how y changes as x changes: Lines and Linear Modeling POINT-SLOPE form: y y1 m( x

rise m x run The slope is a ratio of how y changes as x changes: Lines and Linear Modeling POINT-SLOPE form: y y1 m( x Chapter 1 Notes 1 (c) Epstein, 013 Chapter 1 Notes (c) Epstein, 013 Chapter1: Lines and Linear Modeling POINT-SLOPE form: y y1 m( x x1) 1.1 The Cartesian Coordinate System A properly laeled set of axes

More information

Statistics 101: Section L - Laboratory 6

Statistics 101: Section L - Laboratory 6 Statistics 101: Section L - Laboratory 6 In today s lab, we are going to look more at least squares regression, and interpretations of slopes and intercepts. Activity 1: From lab 1, we collected data on

More information

SAMPLE STANDARD DEVIATION(s) CHART UNDER THE ASSUMPTION OF MODERATENESS AND ITS PERFORMANCE ANALYSIS

SAMPLE STANDARD DEVIATION(s) CHART UNDER THE ASSUMPTION OF MODERATENESS AND ITS PERFORMANCE ANALYSIS Science SAMPLE STANDARD DEVIATION(s) CHART UNDER THE ASSUMPTION OF MODERATENESS AND ITS PERFORMANCE ANALYSIS Kalpesh S Tailor * * Assistant Professor, Department of Statistics, M K Bhavnagar University,

More information

Summary of Statistical Analysis Tools EDAD 5630

Summary of Statistical Analysis Tools EDAD 5630 Summary of Statistical Analysis Tools EDAD 5630 Test Name Program Used Purpose Steps Main Uses/Applications in Schools Principal Component Analysis SPSS Measure Underlying Constructs Reliability SPSS Measure

More information

Lucas s Investment Tax Credit Example

Lucas s Investment Tax Credit Example Lucas s Investment Tax Credit Example The key idea: It is 1975 and you have just been hired by the Council of Economic Adviser s to estimate the effects of an investment tax credit. This policy is being

More information

Web Appendix. Are the effects of monetary policy shocks big or small? Olivier Coibion

Web Appendix. Are the effects of monetary policy shocks big or small? Olivier Coibion Web Appendix Are the effects of monetary policy shocks big or small? Olivier Coibion Appendix 1: Description of the Model-Averaging Procedure This section describes the model-averaging procedure used in

More information

New SAS Procedures for Analysis of Sample Survey Data

New SAS Procedures for Analysis of Sample Survey Data New SAS Procedures for Analysis of Sample Survey Data Anthony An and Donna Watts, SAS Institute Inc, Cary, NC Abstract Researchers use sample surveys to obtain information on a wide variety of issues Many

More information

Outline. Review Continuation of exercises from last time

Outline. Review Continuation of exercises from last time Bayesian Models II Outline Review Continuation of exercises from last time 2 Review of terms from last time Probability density function aka pdf or density Likelihood function aka likelihood Conditional

More information

XLSTAT TIP SHEET FOR BUSINESS STATISTICS CENGAGE LEARNING

XLSTAT TIP SHEET FOR BUSINESS STATISTICS CENGAGE LEARNING XLSTAT TIP SHEET FOR BUSINESS STATISTICS CENGAGE LEARNING INTRODUCTION XLSTAT makes accessible to anyone a powerful, complete and user-friendly data analysis and statistical solution. Accessibility to

More information

SMALL AREA ESTIMATES OF INCOME: MEANS, MEDIANS

SMALL AREA ESTIMATES OF INCOME: MEANS, MEDIANS SMALL AREA ESTIMATES OF INCOME: MEANS, MEDIANS AND PERCENTILES Alison Whitworth (alison.whitworth@ons.gsi.gov.uk) (1), Kieran Martin (2), Cruddas, Christine Sexton, Alan Taylor Nikos Tzavidis (3), Marie

More information

CHAPTER 12 EXAMPLES: MONTE CARLO SIMULATION STUDIES

CHAPTER 12 EXAMPLES: MONTE CARLO SIMULATION STUDIES Examples: Monte Carlo Simulation Studies CHAPTER 12 EXAMPLES: MONTE CARLO SIMULATION STUDIES Monte Carlo simulation studies are often used for methodological investigations of the performance of statistical

More information

Binomial Random Variables. Binomial Random Variables

Binomial Random Variables. Binomial Random Variables Bernoulli Trials Definition A Bernoulli trial is a random experiment in which there are only two possible outcomes - success and failure. 1 Tossing a coin and considering heads as success and tails as

More information

Estimation Procedure for Parametric Survival Distribution Without Covariates

Estimation Procedure for Parametric Survival Distribution Without Covariates Estimation Procedure for Parametric Survival Distribution Without Covariates The maximum likelihood estimates of the parameters of commonly used survival distribution can be found by SAS. The following

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

FDI and trade: complements and substitutes

FDI and trade: complements and substitutes FDI and trade: complements and substitutes José Pedro Pontes (ISEG/UTL and UECE) October 2005 Abstract This paper presents a non-monotonic relationship between foreign direct investment and trade based

More information

Risk Analysis. å To change Benchmark tickers:

Risk Analysis. å To change Benchmark tickers: Property Sheet will appear. The Return/Statistics page will be displayed. 2. Use the five boxes in the Benchmark section of this page to enter or change the tickers that will appear on the Performance

More information

NATIONAL INCOME DETERMINATION

NATIONAL INCOME DETERMINATION 4 C H A P T E R NATINAL INCME DETERMINATIN NAGGING QUESTINS Q1. Can a rich man in the economy help others earn better or not? Do his economic actions impact others? Q2. Could increased sales of your father

More information

Final Exam Suggested Solutions

Final Exam Suggested Solutions University of Washington Fall 003 Department of Economics Eric Zivot Economics 483 Final Exam Suggested Solutions This is a closed book and closed note exam. However, you are allowed one page of handwritten

More information

SAS Simple Linear Regression Example

SAS Simple Linear Regression Example SAS Simple Linear Regression Example This handout gives examples of how to use SAS to generate a simple linear regression plot, check the correlation between two variables, fit a simple linear regression

More information

Final Exam Review - MAT 0028

Final Exam Review - MAT 0028 Final Exam Review - MAT 0028 All questions on the final exam are multiple choice. You will be graded on your letter choices only - no partial credit will be awarded. To maximize the benefit of this review,

More information

Econometric Methods for Valuation Analysis

Econometric Methods for Valuation Analysis Econometric Methods for Valuation Analysis Margarita Genius Dept of Economics M. Genius (Univ. of Crete) Econometric Methods for Valuation Analysis Cagliari, 2017 1 / 26 Correlation Analysis Simple Regression

More information

Quantile regression with PROC QUANTREG Peter L. Flom, Peter Flom Consulting, New York, NY

Quantile regression with PROC QUANTREG Peter L. Flom, Peter Flom Consulting, New York, NY ABSTRACT Quantile regression with PROC QUANTREG Peter L. Flom, Peter Flom Consulting, New York, NY In ordinary least squares (OLS) regression, we model the conditional mean of the response or dependent

More information

CHAPTER 8 EXAMPLES: MIXTURE MODELING WITH LONGITUDINAL DATA

CHAPTER 8 EXAMPLES: MIXTURE MODELING WITH LONGITUDINAL DATA Examples: Mixture Modeling With Longitudinal Data CHAPTER 8 EXAMPLES: MIXTURE MODELING WITH LONGITUDINAL DATA Mixture modeling refers to modeling with categorical latent variables that represent subpopulations

More information

Homework Assignment Section 3

Homework Assignment Section 3 Homework Assignment Section 3 Tengyuan Liang Business Statistics Booth School of Business Problem 1 A company sets different prices for a particular stereo system in eight different regions of the country.

More information