Linear Mixed Models: Methodology and Algorithms

Size: px
Start display at page:

Download "Linear Mixed Models: Methodology and Algorithms"

Transcription

1 Linear Mixed Models: Methodology and Algorithms David M. Allen University of Kentucky April 10, 2017

2 18SAS Ddfm Options You have been encouraged to use the Satterthwaite option for degrees of freedom. SAS does provide other options that are discussed here. It possible that some of the options will be depreciated in subsequent versions, so it is important to check the documentation for the version of SAS you are using. There is also an introduction to SAS Macros.

3 Section 18.1 SAS Degrees of Freedom Options This discussion pertains to SAS proc mixed or proc glimmix when used for linear mixed models. The estimate statement has a df option to specify the denominator degrees of freedom for the approximate t-distribution. However, with the possible exception of simple tests with balanced data, most people will want the program to provide the degrees of freedom. Here five methods for determining denominator degrees of freedom are described. There is a sixth, NONE, which means infinite degrees of freedom

4 The Containment Method The containment method is the default when the RANDOM statement is used. Otherwise, the containment method is invoked with the DDFM = CONTAIN option on the model statement. Denote the fixed effect in question A, and search the RANDOM effect list for the effects that syntactically contain A. Among the random effects that contain A, compute their rank contribution to the [X Z] matrix. The denominator degrees of freedom assigned to A is the smallest of these rank contributions. If A is not found on the random statement, the containment method is not invoked, and the denominator degrees of freedom are the residual degrees of freedom

5 Note Note that for a nested model, specified by the direct method, the containment method will not be invoked

6 The Between-Within Method The DDFM = BETWITHIN option is the default for REPEATED statement specifications (with no RANDOM statements). It is computed by dividing the residual degrees of freedom into between-subject and within-subject portions. PROC MIXED then checks whether a fixed effect changes within any subject. If so, it assigns within-subject degrees of freedom to the effect; otherwise, it assigns the between-subject degrees of freedom to the effect. If there are multiple within-subject effects containing classification variables, the within-subject degrees of freedom is partitioned into components corresponding to the subject-by-effect interactions

7 The Residual Degrees of Freedom The denominator degrees of freedom are the residual degrees of freedom. This will give exact test for all effects that are orthogonal to the Z matrix; i.e. split-plot treatment and interaction with whole-plot treatment

8 The Satterthwaite Method The Satterthwaite method has been described earlier

9 The Kenward-Roger Method The Kenward-Roger method implements the method described in [1]. This method is in SAS starting with Version 8. From what I can tell, the Kenward-Roger method gives the same degrees of freedom as the Satterthwaite method. The difference is in the methodology for computing the estimated standard error

10 Section 18.2 Comparison of Degrees of Freedom Previously, three different estimators, using traditional methods, were considered in the context of the balanced Drug-Alcohol data. This Section demonstrates the SAS denominator degrees of freedom options for these estimates. Then some of the data is removed, and the exercise is repeated

11 Drug-Alcohol Data with Missing Values Drugs Alcohol Subject A B C Yes RST Yes JBM Yes DGH Yes JBH Yes WJT Yes EEA No DCJ No CJW No RDF No RLA No HEM No AMR

12 The Nature of Missing Values Seven observations, or 19.4%, are removed. Four are from the alcohol group, and three are from the no alcohol group. Three observations are removed from both the Drug A and Drug B groups, and one observation is removed from Drug C

13 The SAS Code The SAS code used for this demonstration is proc glimmix data = balanced noprofile ; classes Alcohol Subject SubWithin Drug; model y = Alcohol Drug Alcohol Drug / ddfm = contain ; random Subject ; estimate 1 i n t 1 Alcohol 1 0 Drug 1 Alcohol drug 1; estimate 2 Alcohol 1 1 ; estimate 3 Drug ; run ; The objects of the red commands are changed from run to run. data will be balanced and missing. ddfm will take on all five methods of computing the denominator degrees of freedom. random will be Subject and SubWithin to illustrate the direct and product method of specifying the random effect

14 Estimate 1 Drug A with no alcohol Denominator degrees of freedom Method Balanced Missing Containment Between-within Residual Satterthwaite Kenward-Roger

15 Estimate 2 Alcohol versus no alcohol Denominator degrees of freedom Method Balanced Missing Containment 20(10) 13(10) Between-within Residual Satterthwaite Kenward-Roger For the containment method, the first number is for direct specification, and the number in parentheses is for product specification

16 Estimate 3 Drug A versus drug C Denominator degrees of freedom Method Balanced Missing Containment Between-within Residual Satterthwaite Kenward-Roger

17 Section 18.3 SAS Macros Production of the tables in the preceding section was tedious. It involved all combinations of two data sets, five ddfm methods, and two ways of specifying the random effect indicator variables. The tedium is reduced somewhat if macros, as illustrated in the following listing, are used. title "DDFM Demonstration " ; data balanced ; input Alcohol $ Subject $ SubWithin Drug $ y x ; cards ; YES RST 1 A YES RST 1 B YES RST 1 C YES JBM 2 A YES JBM 2 B YES JBM 2 C YES DGH 3 A

18 YES DGH 3 B YES DGH 3 C YES JBH 4 A YES JBH 4 B YES JBH 4 C YES WJT 5 A YES WJT 5 B YES WJT 5 C YES EEA 6 A YES EEA 6 B YES EEA 6 C NO DCJ 1 A NO DCJ 1 B NO DCJ 1 C NO CJW 2 A NO CJW 2 B NO CJW 2 C NO RDF 3 A NO RDF 3 B NO RDF 3 C

19 NO RLA 4 A NO RLA 4 B NO RLA 4 C NO HEM 5 A NO HEM 5 B NO HEM 5 C NO AMR 6 A NO AMR 6 B NO AMR 6 C ; proc print ; data=balanced ; run ; data missing ; set balanced ; if x=1 then delete ; run ; %MACRO lmm( dataset=,method=,subject=); / Linear mixed models / proc glimmix data=&dataset noprofile ; classes Alcohol Subject SubWithin Drug ;

20 model y = Alcohol Drug Alcohol Drug / ddfm=&method ; random &subject ; estimate 1 intercept 1 Alcohol 1 0 Drug 1 Alcohol drug 1 ; estimate 2 Alcohol 1 1 ; estimate 3 Drug ; run ; %MEND lmm ; contain ; %lmm( dataset=balanced, method=contain, subject=subject ) ; %lmm( dataset=missing, method=contain, subject=subject ) ; %lmm( dataset=balanced, method=contain, subject=subwithin( Alcohol ) ) ; %lmm( dataset=missing, method=contain, subject=subwithin( Alcohol ) ) ; betwithin ; %lmm( dataset=balanced, method=betwithin, subject=subject ) ; %lmm( dataset=missing, method=betwithin, subject=subject ) ; %lmm( dataset=balanced, method=betwithin, subject=subwithin( Alcohol ) ) %lmm( dataset=missing, method=betwithin, subject=subwithin( Alcohol ) ) ; residual ; %lmm( dataset=balanced, method=residual, subject=subject ) ; %lmm( dataset=missing, method=residual, subject=subject ) ;

21 %lmm( dataset=balanced, method=residual, subject=subwithin( Alcohol ) ) ; %lmm( dataset=missing, method=residual, subject=subwithin( Alcohol ) ) ; satterthwaite ; %lmm( dataset=balanced, method=satterthwaite, subject=subject ) ; %lmm( dataset=missing, method=satterthwaite, subject=subject ) ; %lmm( dataset=balanced, method=satterthwaite, subject=subwithin( Alcoh %lmm( dataset=missing, method=satterthwaite, subject=subwithin( Alcoho kenwardroger ; %lmm( dataset=balanced, method=kenwardroger, subject=subject ) ; %lmm( dataset=missing, method=kenwardroger, subject=subject ) ; %lmm( dataset=balanced, method=kenwardroger, subject=subwithin( Alcoho %lmm( dataset=missing, method=kenwardroger, subject=subwithin( Alcohol

The SAS Denomininator Degrees of Freedom Option

The SAS Denomininator Degrees of Freedom Option The SAS Denomininator Degrees of Freedom Option David Allen University of Kentucky April 12, 2016 1 SAS Degrees of Freedom Options This discussion pertains to SAS proc mixed or proc glimmix when used for

More information

ST706: Spring One-Way Random effects example.

ST706: Spring One-Way Random effects example. ST706: Spring 2013. One-Way Random effects example. DATA IS FROM CONTROL ARM OF SKIN CANCER STUDY AT DARTMOUTH. DC0 TO DC5 ARE MEASURES OF DIETARY INTAKE OVER 6 YEARS. For illustration here we treat the

More information

GLMSELECT for Model Selection

GLMSELECT for Model Selection Winnipeg SAS User Group Meeting May 11, 2012 GLMSELECT for Model Selection Sylvain Tremblay SAS Canada Education Copyright 2010 SAS Institute Inc. All rights reserved. Proc GLM Proc REG Class Statement

More information

EPG Data Analysis 101 A brief introduction to Backus 2.0

EPG Data Analysis 101 A brief introduction to Backus 2.0 Data Analysis 101 A brief introduction to Backus 2.0 by T. A. Ebert M.E. Rogers Introduction (The program and citation are on the website) Used about as frequently as the Sarria Workbook. Includes a statistical

More information

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References...

Chapter 15 Mixed Models. Chapter Table of Contents. Introduction Split Plot Experiment Clustered Data References... Chapter 15 Mixed Models Chapter Table of Contents Introduction...309 Split Plot Experiment...311 Clustered Data...320 References...326 308 Chapter 15. Mixed Models Chapter 15 Mixed Models Introduction

More information

NCSS Statistical Software. Design Generator

NCSS Statistical Software. Design Generator Chapter 268 Introduction This program generates factorial, repeated measures, and split-plots designs with up to ten factors. The design is placed in the current database. Crossed Factors Two factors are

More information

SAS/STAT 14.2 User s Guide. The PLM Procedure

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

More information

Catering to Your Tastes: Using PROC OPTEX to Design Custom Experiments, with Applications in Food Science and Field Trials

Catering to Your Tastes: Using PROC OPTEX to Design Custom Experiments, with Applications in Food Science and Field Trials Paper 3148-2015 Catering to Your Tastes: Using PROC OPTEX to Design Custom Experiments, with Applications in Food Science and Field Trials Clifford Pereira, Department of Statistics, Oregon State University;

More information

Macro Basics. Introduction. Defining and Using Macro Variables. Defining and Using Macros. Macro Parameters. Part 1. Chapter 1. Chapter 2.

Macro Basics. Introduction. Defining and Using Macro Variables. Defining and Using Macros. Macro Parameters. Part 1. Chapter 1. Chapter 2. Part 1 Macro Basics Chapter 1 Chapter 2 Chapter 3 Chapter 4 Introduction Defining and Using Macro Variables Defining and Using Macros Macro Parameters 2 Carpenter s Complete Guide to the SAS Macro Language

More information

The NESTED Procedure (Chapter)

The NESTED Procedure (Chapter) SAS/STAT 9.3 User s Guide The NESTED Procedure (Chapter) SAS Documentation This document is an individual chapter from SAS/STAT 9.3 User s Guide. The correct bibliographic citation for the complete manual

More information

SAS PROC GLM and PROC MIXED. for Recovering Inter-Effect Information

SAS PROC GLM and PROC MIXED. for Recovering Inter-Effect Information SAS PROC GLM and PROC MIXED for Recovering Inter-Effect Information Walter T. Federer Biometrics Unit Cornell University Warren Hall Ithaca, NY -0 biometrics@comell.edu Russell D. Wolfinger SAS Institute

More information

SAS/STAT 13.1 User s Guide. The NESTED Procedure

SAS/STAT 13.1 User s Guide. The NESTED Procedure SAS/STAT 13.1 User s Guide The NESTED Procedure This document is an individual chapter from SAS/STAT 13.1 User s Guide. The correct bibliographic citation for the complete manual is as follows: SAS Institute

More information

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview Chapter 888 Introduction This procedure generates D-optimal designs for multi-factor experiments with both quantitative and qualitative factors. The factors can have a mixed number of levels. For example,

More information

MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models

MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models SESUG 2015 Paper SD189 MIXED_RELIABILITY: A SAS Macro for Estimating Lambda and Assessing the Trustworthiness of Random Effects in Multilevel Models Jason A. Schoeneberger ICF International Bethany A.

More information

Week 6, Week 7 and Week 8 Analyses of Variance

Week 6, Week 7 and Week 8 Analyses of Variance Week 6, Week 7 and Week 8 Analyses of Variance Robyn Crook - 2008 In the next few weeks we will look at analyses of variance. This is an information-heavy handout so take your time reading it, and don

More information

PSY 9556B (Feb 5) Latent Growth Modeling

PSY 9556B (Feb 5) Latent Growth Modeling PSY 9556B (Feb 5) Latent Growth Modeling Fixed and random word confusion Simplest LGM knowing how to calculate dfs How many time points needed? Power, sample size Nonlinear growth quadratic Nonlinear growth

More information

STAT 5200 Handout #25. R-Square & Design Matrix in Mixed Models

STAT 5200 Handout #25. R-Square & Design Matrix in Mixed Models STAT 5200 Handout #25 R-Square & Design Matrix in Mixed Models I. R-Square in Mixed Models (with Example from Handout #20): For mixed models, the concept of R 2 is a little complicated (and neither PROC

More information

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017

Introduction to Hierarchical Linear Model. Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 Introduction to Hierarchical Linear Model Hsueh-Sheng Wu CFDR Workshop Series January 30, 2017 1 Outline What is Hierarchical Linear Model? Why do nested data create analytic problems? Graphic presentation

More information

Stat 500 lab notes c Philip M. Dixon, Week 10: Autocorrelated errors

Stat 500 lab notes c Philip M. Dixon, Week 10: Autocorrelated errors Week 10: Autocorrelated errors This week, I have done one possible analysis and provided lots of output for you to consider. Case study: predicting body fat Body fat is an important health measure, but

More information

Recall the crossover design set up as a Latin rectangle: Sequence=Subject A B C A B C 3 C A B B C A

Recall the crossover design set up as a Latin rectangle: Sequence=Subject A B C A B C 3 C A B B C A D. More on Crossover Designs: # periods = # trts Recall the crossover design set up as a Latin rectangle: Period Sequence=Subject 1 2 3 4 5 6 1 A B C A B C 2 B C A C A B 3 C A B B C A With one subject

More information

Repeated Measures Part 4: Blood Flow data

Repeated Measures Part 4: Blood Flow data Repeated Measures Part 4: Blood Flow data /* bloodflow.sas */ options linesize=79 pagesize=100 noovp formdlim='_'; title 'Two within-subjecs factors: Blood flow data (NWK p. 1181)'; proc format; value

More information

SAS and SAS/EG at the Plant Systems Biology Department

SAS and SAS/EG at the Plant Systems Biology Department SAS and SAS/EG at the Plant Systems Biology Department VERONIQUE STORME outline Using the mixed procedure to analyze data with empty cells random coefficient model with a fitted periodic function invoke

More information

Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD

Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD Penetrating the Matrix Justin Z. Smith, William Gui Zupko II, U.S. Census Bureau, Suitland, MD ABSTRACT While working on a time series modeling problem, we needed to find the row and column that corresponded

More information

An introduction to SPSS

An introduction to SPSS An introduction to SPSS To open the SPSS software using U of Iowa Virtual Desktop... Go to https://virtualdesktop.uiowa.edu and choose SPSS 24. Contents NOTE: Save data files in a drive that is accessible

More information

STAT 5200 Handout #24: Power Calculation in Mixed Models

STAT 5200 Handout #24: Power Calculation in Mixed Models STAT 5200 Handout #24: Power Calculation in Mixed Models Statistical power is the probability of finding an effect (i.e., calling a model term significant), given that the effect is real. ( Effect here

More information

STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression

STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression analysis. Analysis of Variance: one way classification,

More information

Any Integer Can Be Written as a Fraction

Any Integer Can Be Written as a Fraction All fractions have three parts: a numerator, a denominator, and a division symbol. In the simple fraction, the numerator and the denominator are integers. Eample 1: Find the numerator, denominator, and

More information

Unit: Rational Number Lesson 3.1: What is a Rational Number? Objectives: Students will compare and order rational numbers.

Unit: Rational Number Lesson 3.1: What is a Rational Number? Objectives: Students will compare and order rational numbers. Unit: Rational Number Lesson 3.: What is a Rational Number? Objectives: Students will compare and order rational numbers. (9N3) Procedure: This unit will introduce the concept of rational numbers. This

More information

Package simr. April 30, 2018

Package simr. April 30, 2018 Type Package Package simr April 30, 2018 Title Power Analysis for Generalised Linear Mixed Models by Simulation Calculate power for generalised linear mixed models, using simulation. Designed to work with

More information

Objectives Graph and Analyze Rational Functions Find the Domain, Asymptotes, Holes, and Intercepts of a Rational Function

Objectives Graph and Analyze Rational Functions Find the Domain, Asymptotes, Holes, and Intercepts of a Rational Function SECTIONS 3.5: Rational Functions Objectives Graph and Analyze Rational Functions Find the Domain, Asymptotes, Holes, and Intercepts of a Rational Function I. Rational Functions A rational function is a

More information

SAS Macro Language: Reference

SAS Macro Language: Reference SAS Macro Language: Reference INTRODUCTION Getting Started with the Macro Facility This is the macro facility language reference for the SAS System. It is a reference for the SAS macro language processor

More information

Matt Downs and Heidi Christ-Schmidt Statistics Collaborative, Inc., Washington, D.C.

Matt Downs and Heidi Christ-Schmidt Statistics Collaborative, Inc., Washington, D.C. Paper 82-25 Dynamic data set selection and project management using SAS 6.12 and the Windows NT 4.0 file system Matt Downs and Heidi Christ-Schmidt Statistics Collaborative, Inc., Washington, D.C. ABSTRACT

More information

MR-2010I %MktRuns Macro %MktRuns Macro

MR-2010I %MktRuns Macro %MktRuns Macro MR-2010I %MktRuns Macro 1159 %MktRuns Macro The %MktRuns autocall macro suggests reasonable sizes for experimental designs. See the following pages for examples of using this macro in the design chapter:

More information

The Power and Sample Size Application

The Power and Sample Size Application Chapter 72 The Power and Sample Size Application Contents Overview: PSS Application.................................. 6148 SAS Power and Sample Size............................... 6148 Getting Started:

More information

Optimizing Finite Automata

Optimizing Finite Automata Optimizing Finite Automata We can improve the DFA created by MakeDeterministic. Sometimes a DFA will have more states than necessary. For every DFA there is a unique smallest equivalent DFA (fewest states

More information

MIXED MODEL PROCEDURES TO ASSESS POWER, PRECISION, AND SAMPLE SIZE IN THE DESIGN OF EXPERIMENTS

MIXED MODEL PROCEDURES TO ASSESS POWER, PRECISION, AND SAMPLE SIZE IN THE DESIGN OF EXPERIMENTS + MIXED MODEL PROCEDURES TO ASSESS POWER, PRECISION, AND SAMPLE SIZE IN THE DESIGN OF EXPERIMENTS + Introduc)on Two Main Ques)ons Sta)s)cal Consultants are Asked: How should I analyze my data? Here is

More information

Getting Ready to Teach Unit 1

Getting Ready to Teach Unit 1 Getting Ready to Teach Unit Learning Path in the Common Core Standards In this unit, students study fractions and mixed numbers They find equivalent fractions, compare fractions, and add and subtract fractions

More information

Singularity Analysis of an Extensible Kinematic Architecture: Assur Class N, Order N 1

Singularity Analysis of an Extensible Kinematic Architecture: Assur Class N, Order N 1 David H. Myszka e-mail: dmyszka@udayton.edu Andrew P. Murray e-mail: murray@notes.udayton.edu University of Dayton, Dayton, OH 45469 James P. Schmiedeler The Ohio State University, Columbus, OH 43210 e-mail:

More information

JMP GENOMICS VALIDATION USING COVERING ARRAYS AND EQUIVALENCE PARTITIONING WENJUN BAO AND JOSEPH MORGAN JMP DIVISION, SAS INC.

JMP GENOMICS VALIDATION USING COVERING ARRAYS AND EQUIVALENCE PARTITIONING WENJUN BAO AND JOSEPH MORGAN JMP DIVISION, SAS INC. Copyr i g ht 2012, SAS Ins titut e Inc. All rights res er ve d. JMP GENOMICS VALIDATION USING COVERING ARRAYS AND EQUIVALENCE PARTITIONING WENJUN BAO AND JOSEPH MORGAN JMP DIVISION, SAS INC. THE SOFTWARE

More information

Chapter 23 Introduction to the OPTEX Procedure

Chapter 23 Introduction to the OPTEX Procedure Chapter 23 Introduction to the OPTEX Procedure Chapter Table of Contents OVERVIEW...719 Features...719 Learning about the OPTEX Procedure...720 GETTING STARTED...721 ConstructingaNonstandardDesign...721

More information

STAT 5200 Handout #21. Split Split Plot Example (Ch. 16)

STAT 5200 Handout #21. Split Split Plot Example (Ch. 16) STAT 5200 Handout #21 Split Split Plot Example (Ch. 16) Build off the Split-Plot Design: (see Handouts #20 and #20a) We can add a third treatment factor and split the split-plot units into split-split-plot

More information

Introduction. Getting Started with the Macro Facility CHAPTER 1

Introduction. Getting Started with the Macro Facility CHAPTER 1 1 CHAPTER 1 Introduction Getting Started with the Macro Facility 1 Replacing Text Strings Using Macro Variables 2 Generating SAS Code Using Macros 3 Inserting Comments in Macros 4 Macro Definition Containing

More information

General Factorial Models

General Factorial Models In Chapter 8 in Oehlert STAT:5201 Week 9 - Lecture 2 1 / 34 It is possible to have many factors in a factorial experiment. In DDD we saw an example of a 3-factor study with ball size, height, and surface

More information

davidr Cornell University

davidr Cornell University 1 NONPARAMETRIC RANDOM EFFECTS MODELS AND LIKELIHOOD RATIO TESTS Oct 11, 2002 David Ruppert Cornell University www.orie.cornell.edu/ davidr (These transparencies and preprints available link to Recent

More information

STATISTICS (STAT) Statistics (STAT) 1

STATISTICS (STAT) Statistics (STAT) 1 Statistics (STAT) 1 STATISTICS (STAT) STAT 2013 Elementary Statistics (A) Prerequisites: MATH 1483 or MATH 1513, each with a grade of "C" or better; or an acceptable placement score (see placement.okstate.edu).

More information

x 16 d( x) 16 n( x) 36 d( x) zeros: x 2 36 = 0 x 2 = 36 x = ±6 Section Yes. Since 1 is a polynomial (of degree 0), P(x) =

x 16 d( x) 16 n( x) 36 d( x) zeros: x 2 36 = 0 x 2 = 36 x = ±6 Section Yes. Since 1 is a polynomial (of degree 0), P(x) = 9 CHAPTER POLYNOMIAL AND RATIONAL FUNCTIONS Section -. Yes. Since is a polynomial (of degree 0), P() P( ) is a rational function if P() is a polynomial.. A vertical asymptote is a vertical line a that

More information

The 'SKIP' Statement

The 'SKIP' Statement The 'SKIP' Statement Paul Grant, Private Healthcare Systems, Inc. The Problem Sooner or later every SAS programmer faces the irritating problem of running only a portion of an existing SAS program. If

More information

Section Graphs of the Sine and Cosine Functions

Section Graphs of the Sine and Cosine Functions Section 5. - Graphs of the Sine and Cosine Functions In this section, we will graph the basic sine function and the basic cosine function and then graph other sine and cosine functions using transformations.

More information

Set up of the data is similar to the Randomized Block Design situation. A. Chang 1. 1) Setting up the data sheet

Set up of the data is similar to the Randomized Block Design situation. A. Chang 1. 1) Setting up the data sheet Repeated Measure Analysis (Univariate Mixed Effect Model Approach) (Treatment as the Fixed Effect and the Subject as the Random Effect) (This univariate approach can be used for randomized block design

More information

lme for SAS PROC MIXED Users

lme for SAS PROC MIXED Users lme for SAS PROC MIXED Users Douglas M. Bates Department of Statistics University of Wisconsin Madison José C. Pinheiro Bell Laboratories Lucent Technologies 1 Introduction The lme function from the nlme

More information

Precalculus An Investigation of Functions

Precalculus An Investigation of Functions Precalculus An Investigation of Functions David Lippman Melonie Rasmussen Edition 1.3 This book is also available to read free online at http://www.opentextbookstore.com/precalc/ If you want a printed

More information

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values

STATISTICAL TECHNIQUES. Interpreting Basic Statistical Values STATISTICAL TECHNIQUES Interpreting Basic Statistical Values INTERPRETING BASIC STATISTICAL VALUES Sample representative How would one represent the average or typical piece of information from a given

More information

Summarizing Impossibly Large SAS Data Sets For the Data Warehouse Server Using Horizontal Summarization

Summarizing Impossibly Large SAS Data Sets For the Data Warehouse Server Using Horizontal Summarization Summarizing Impossibly Large SAS Data Sets For the Data Warehouse Server Using Horizontal Summarization Michael A. Raithel, Raithel Consulting Services Abstract Data warehouse applications thrive on pre-summarized

More information

EXST3201 Mousefeed01 Page 1

EXST3201 Mousefeed01 Page 1 EXST3201 Mousefeed01 Page 1 3 /* 4 Examine differences among the following 6 treatments 5 N/N85 fed normally before weaning and 85 kcal/wk after 6 N/R40 fed normally before weaning and 40 kcal/wk after

More information

RSM Split-Plot Designs & Diagnostics Solve Real-World Problems

RSM Split-Plot Designs & Diagnostics Solve Real-World Problems RSM Split-Plot Designs & Diagnostics Solve Real-World Problems Shari Kraber Pat Whitcomb Martin Bezener Stat-Ease, Inc. Stat-Ease, Inc. Stat-Ease, Inc. 221 E. Hennepin Ave. 221 E. Hennepin Ave. 221 E.

More information

Classwork. Exercises Use long division to determine the decimal expansion of. NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 6 8 7

Classwork. Exercises Use long division to determine the decimal expansion of. NYS COMMON CORE MATHEMATICS CURRICULUM Lesson 6 8 7 Classwork Exercises 1 5 1. Use long division to determine the decimal expansion of. 2. Use long division to determine the decimal expansion of. 3. Use long division to determine the decimal expansion of.

More information

Small Sample Robust Fit Criteria in Latent Growth Models with Incomplete Data. Dan McNeish & Jeff Harring University of Maryland

Small Sample Robust Fit Criteria in Latent Growth Models with Incomplete Data. Dan McNeish & Jeff Harring University of Maryland Small Sample Robust Fit Criteria in Latent Growth Models with Incomplete Data Dan McNeish & Jeff Harring University of Maryland Growth Models With Small Samples An expanding literature has addressed the

More information

Cluster Analysis for Microarray Data

Cluster Analysis for Microarray Data Cluster Analysis for Microarray Data Seventh International Long Oligonucleotide Microarray Workshop Tucson, Arizona January 7-12, 2007 Dan Nettleton IOWA STATE UNIVERSITY 1 Clustering Group objects that

More information

Enterprise Miner Tutorial Notes 2 1

Enterprise Miner Tutorial Notes 2 1 Enterprise Miner Tutorial Notes 2 1 ECT7110 E-Commerce Data Mining Techniques Tutorial 2 How to Join Table in Enterprise Miner e.g. we need to join the following two tables: Join1 Join 2 ID Name Gender

More information

BACKGROUND INFORMATION ON COMPLEX SAMPLE SURVEYS

BACKGROUND INFORMATION ON COMPLEX SAMPLE SURVEYS Analysis of Complex Sample Survey Data Using the SURVEY PROCEDURES and Macro Coding Patricia A. Berglund, Institute For Social Research-University of Michigan, Ann Arbor, Michigan ABSTRACT The paper presents

More information

Scientific Graphing in Excel 2013

Scientific Graphing in Excel 2013 Scientific Graphing in Excel 2013 When you start Excel, you will see the screen below. Various parts of the display are labelled in red, with arrows, to define the terms used in the remainder of this overview.

More information

Choose the correct answer below. 2. Convert the angle to a decimal in degrees.

Choose the correct answer below. 2. Convert the angle to a decimal in degrees. 1. Choose the figure that shows an angle of in standard position. Choose the correct answer below. 2. Convert the angle to a decimal in degrees. (Do not round until the final answer. Then round to two

More information

Spreadsheets. With Microsoft Excel as an example

Spreadsheets. With Microsoft Excel as an example Spreadsheets With Microsoft Excel as an example Reading Chapter One and Three Exercises Those in the text of chapters one and three. The Problems section is not required. Purpose Originally for Accounting

More information

R-Square Coeff Var Root MSE y Mean

R-Square Coeff Var Root MSE y Mean STAT:50 Applied Statistics II Exam - Practice 00 possible points. Consider a -factor study where each of the factors has 3 levels. The factors are Diet (,,3) and Drug (A,B,C) and there are n = 3 observations

More information

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7 Warm-Up Exercises Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; 3 2. y = 2x + 7 7 2 ANSWER ; 7 Chapter 1.1 Graph Quadratic Functions in Standard Form A quadratic function is a function that

More information

Graphing Linear Equations

Graphing Linear Equations Graphing Linear Equations Question 1: What is a rectangular coordinate system? Answer 1: The rectangular coordinate system is used to graph points and equations. To create the rectangular coordinate system,

More information

A Secondary storage Algorithms and Data Structures Supplementary Questions and Exercises

A Secondary storage Algorithms and Data Structures Supplementary Questions and Exercises 308-420A Secondary storage Algorithms and Data Structures Supplementary Questions and Exercises Section 1.2 4, Logarithmic Files Logarithmic Files 1. A B-tree of height 6 contains 170,000 nodes with an

More information

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison 610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison R is very touchy about unbalanced designs, partly because

More information

Using UNIX Shell Scripting to Enhance Your SAS Programming Experience

Using UNIX Shell Scripting to Enhance Your SAS Programming Experience Paper 2412-2018 Using UNIX Shell Scripting to Enhance Your SAS Programming Experience James Curley, Eliassen Group ABSTRACT This series will address three different approaches to using a combination of

More information

Using PROC SQL to Generate Shift Tables More Efficiently

Using PROC SQL to Generate Shift Tables More Efficiently ABSTRACT SESUG Paper 218-2018 Using PROC SQL to Generate Shift Tables More Efficiently Jenna Cody, IQVIA Shift tables display the change in the frequency of subjects across specified categories from baseline

More information

X=SAS-data-set specifies the incidence matrix for the block design, which is a binary coding of the design.

X=SAS-data-set specifies the incidence matrix for the block design, which is a binary coding of the design. The %MktPPro Macro Introduction The %MktPPro autocall macro makes optimal partial-profile designs from block designs and orthogonal arrays. An incomplete block design is a list of t treatments that appear

More information

Recursive Programming Applications in Base SAS

Recursive Programming Applications in Base SAS SESUG Paper 233-2018 Recursive Programming Applications in Base SAS Jinson J. Erinjeri and Pratap Kunwar, Emmes Corporation ABSTRACT Programmers employ recursive programming when faced with tasks which

More information

Converting between Percents, Decimals, and Fractions

Converting between Percents, Decimals, and Fractions Section. PRE-ACTIVITY PREPARATION Converting between Percents, Decimals, and Fractions Think about how often you have heard, read, or used the term percent (%) in its many everyday applications: The sales

More information

More on Experimental Designs

More on Experimental Designs Chapter 9 More on Experimental Designs The one and two way Anova designs, completely randomized block design and split plot designs are the building blocks for more complicated designs. Some split plot

More information

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM

CSC 328/428 Summer Session I 2002 Data Analysis for the Experimenter FINAL EXAM options pagesize=53 linesize=76 pageno=1 nodate; proc format; value $stcktyp "1"="Growth" "2"="Combined" "3"="Income"; data invstmnt; input stcktyp $ perform; label stkctyp="type of Stock" perform="overall

More information

The lmekin function. Terry Therneau Mayo Clinic. May 11, 2018

The lmekin function. Terry Therneau Mayo Clinic. May 11, 2018 The lmekin function Terry Therneau Mayo Clinic May 11, 2018 1 Background The original kinship library had an implementation of linear mixed effects models using the matrix code found in coxme. Since the

More information

Foundations and Fundamentals. SAS System Options: The True Heroes of Macro Debugging Kevin Russell and Russ Tyndall, SAS Institute Inc.

Foundations and Fundamentals. SAS System Options: The True Heroes of Macro Debugging Kevin Russell and Russ Tyndall, SAS Institute Inc. SAS System Options: The True Heroes of Macro Debugging Kevin Russell and Russ Tyndall, SAS Institute Inc., Cary, NC ABSTRACT It is not uncommon for the first draft of any macro application to contain errors.

More information

EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression

EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression OBJECTIVES 1. Prepare a scatter plot of the dependent variable on the independent variable 2. Do a simple linear regression

More information

Using UNIX Shell Scripting to Enhance Your SAS Programming Experience

Using UNIX Shell Scripting to Enhance Your SAS Programming Experience Using UNIX Shell Scripting to Enhance Your SAS Programming Experience By James Curley SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute

More information

186 Statistics, Data Analysis and Modeling. Proceedings of MWSUG '95

186 Statistics, Data Analysis and Modeling. Proceedings of MWSUG '95 A Statistical Analysis Macro Library in SAS Carl R. Haske, Ph.D., STATPROBE, nc., Ann Arbor, M Vivienne Ward, M.S., STATPROBE, nc., Ann Arbor, M ABSTRACT Statistical analysis plays a major role in pharmaceutical

More information

Binary Relations McGraw-Hill Education

Binary Relations McGraw-Hill Education Binary Relations A binary relation R from a set A to a set B is a subset of A X B Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B. We can also represent

More information

BIOMETRICS INFORMATION

BIOMETRICS INFORMATION BIOMETRICS INFORMATION (You re 95% likely to need this information) PAMPHLET NO. # 57 DATE: September 5, 1997 SUBJECT: Interpreting Main Effects when a Two-way Interaction is Present Interpreting the analysis

More information

Paper A Simplified and Efficient Way to Map Variable Attributes of a Clinical Data Warehouse

Paper A Simplified and Efficient Way to Map Variable Attributes of a Clinical Data Warehouse Paper 117-28 A Simplified and Efficient Way to Map Variable Attributes of a Clinical Data Warehouse Yanyun Shen, Genentech, Inc., South San Francisco ABSTRACT In the pharmaceutical industry, pooling a

More information

Repeat or Not? That Is the Question!

Repeat or Not? That Is the Question! Repeat or Not? That Is the Question! Exact Decimal Representations of Fractions Learning Goals In this lesson, you will: Use decimals and fractions to evaluate arithmetic expressions. Convert fractions

More information

Lesson 1: THE DECIMAL SYSTEM

Lesson 1: THE DECIMAL SYSTEM Lesson 1: THE DECIMAL SYSTEM The word DECIMAL comes from a Latin word, which means "ten. The Decimal system uses the following ten digits to write a number: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Each time

More information

Frequently Asked Questions about Installation and Execution of IVEware v0.3. IVEware Support Team, April 26, 2018

Frequently Asked Questions about Installation and Execution of IVEware v0.3. IVEware Support Team, April 26, 2018 Frequently Asked Questions about Installation and Execution of IVEware v0.3 IVEware Support Team, April 26, 2018 These FAQ s represent the most frequent questions we receive about installation and execution

More information

Using Recursion for More Convenient Macros

Using Recursion for More Convenient Macros Paper BB-04 Using Recursion for More Convenient Macros Nate Derby, Stakana Analytics, Seattle, WA ABSTRACT There are times when a macro needs to alternatively be applied to either one value or a list of

More information

An Introduction to Visit Window Challenges and Solutions

An Introduction to Visit Window Challenges and Solutions ABSTRACT Paper 125-2017 An Introduction to Visit Window Challenges and Solutions Mai Ngo, SynteractHCR In clinical trial studies, statistical programmers often face the challenge of subjects visits not

More information

Exponents. Although exponents can be negative as well as positive numbers, this chapter will only address the use of positive exponents.

Exponents. Although exponents can be negative as well as positive numbers, this chapter will only address the use of positive exponents. Section 6.2 PRE-ACTIVITY PREPARATION Exponents Exponents enable you to simplify the presentation of a numerical expression containing repeated multiplication into a concise form that is easier to read

More information

Clustering Relational Data using the Infinite Relational Model

Clustering Relational Data using the Infinite Relational Model Clustering Relational Data using the Infinite Relational Model Ana Daglis Supervised by: Matthew Ludkin September 4, 2015 Ana Daglis Clustering Data using the Infinite Relational Model September 4, 2015

More information

PharmaSUG Paper AD06

PharmaSUG Paper AD06 PharmaSUG 2012 - Paper AD06 A SAS Tool to Allocate and Randomize Samples to Illumina Microarray Chips Huanying Qin, Baylor Institute of Immunology Research, Dallas, TX Greg Stanek, STEEEP Analytics, Baylor

More information

A SAS Macro for measuring and testing global balance of categorical covariates

A SAS Macro for measuring and testing global balance of categorical covariates A SAS Macro for measuring and testing global balance of categorical covariates Camillo, Furio and D Attoma,Ida Dipartimento di Scienze Statistiche, Università di Bologna via Belle Arti,41-40126- Bologna,

More information

Math 20 Practice Exam #2 Problems and Their Solutions!

Math 20 Practice Exam #2 Problems and Their Solutions! Math 20 Practice Exam #2 Problems and Their Solutions! #1) Solve the linear system by graphing: Isolate for in both equations. Graph the two lines using the slope-intercept method. The two lines intersect

More information

Lecture 10 Graph algorithms: testing graph properties

Lecture 10 Graph algorithms: testing graph properties Lecture 10 Graph algorithms: testing graph properties COMP 523: Advanced Algorithmic Techniques Lecturer: Dariusz Kowalski Lecture 10: Testing Graph Properties 1 Overview Previous lectures: Representation

More information

SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD

SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD ABSTRACT CODERS CORNER SAS Macro Dynamics: from Simple Basics to Powerful Invocations Rick Andrews, Office of Research, Development, and Information, Baltimore, MD The SAS Macro Facility offers a mechanism

More information

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application SAS/STAT 13.1 User s Guide The Power and Sample Size Application This document is an individual chapter from SAS/STAT 13.1 User s Guide. The correct bibliographic citation for the complete manual is as

More information

Taming the Box Plot. Sanjiv Ramalingam, Octagon Research Solutions, Inc., Wayne, PA

Taming the Box Plot. Sanjiv Ramalingam, Octagon Research Solutions, Inc., Wayne, PA Taming the Box Plot Sanjiv Ramalingam, Octagon Research Solutions, Inc., Wayne, PA ABSTRACT Box plots are used to portray the range, quartiles and outliers if any in the data. PROC BOXPLOT can be used

More information

2.3 Algorithms Using Map-Reduce

2.3 Algorithms Using Map-Reduce 28 CHAPTER 2. MAP-REDUCE AND THE NEW SOFTWARE STACK one becomes available. The Master must also inform each Reduce task that the location of its input from that Map task has changed. Dealing with a failure

More information

Comply Peer 2 Peer Help document

Comply Peer 2 Peer Help document Comply Peer 2 Peer Help document RATA Associates 2006 Table of Contents RATA Comply Peer-2-Peer Overview 2 Accessing Peer-2-Peer 3 Account Information 4 Logout 5 Log In 6 Menu 7 Register 8 Selection Summary

More information

MODEL DEVELOPMENT: VARIABLE SELECTION

MODEL DEVELOPMENT: VARIABLE SELECTION 7 MODEL DEVELOPMENT: VARIABLE SELECTION The discussion of least squares regression thus far has presumed that the model was known with respect to which variables were to be included and the form these

More information