Conditional and Unconditional Regression with No Measurement Error

Similar documents
Introduction to SAS proc calis

Confirmatory Factor Analysis on the Twin Data: Try One

Introduction to SAS proc calis

Page 1 of 8. Language Development Study

STA431 Handout 9 Double Measurement Regression on the BMI Data

Factorial ANOVA. Skipping... Page 1 of 18

Repeated Measures Part 4: Blood Flow data

Conducting a Path Analysis With SPSS/AMOS

A Beginner's Guide to. Randall E. Schumacker. The University of Alabama. Richard G. Lomax. The Ohio State University. Routledge

CH5: CORR & SIMPLE LINEAR REFRESSION =======================================

Bivariate (Simple) Regression Analysis

ST512. Fall Quarter, Exam 1. Directions: Answer questions as directed. Please show work. For true/false questions, circle either true or false.

CMAT Newsletter: March 2003

Simulating Multivariate Normal Data

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

Within-Cases: Multivariate approach part one

Multiple Group CFA in AMOS (And Modification Indices and Nested Models)

Stat 5100 Handout #6 SAS: Linear Regression Remedial Measures

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010

Week 5: Multiple Linear Regression II

Study Guide. Module 1. Key Terms

Cell means coding and effect coding

THE UNIVERSITY OF BRITISH COLUMBIA FORESTRY 430 and 533. Time: 50 minutes 40 Marks FRST Marks FRST 533 (extra questions)

SAS Structural Equation Modeling 1.3 for JMP

SEM 1: Confirmatory Factor Analysis

SAS/STAT 9.2 User s Guide. The TCALIS Procedure. (Experimental) (Book Excerpt)

Centering and Interactions: The Training Data

CHAPTER 18 OUTPUT, SAVEDATA, AND PLOT COMMANDS

lavaan: an R package for structural equation modeling

STAT:5201 Applied Statistic II

Factorial ANOVA with SAS

CS 395T Lecture 12: Feature Matching and Bundle Adjustment. Qixing Huang October 10 st 2018

Getting Correct Results from PROC REG

Week 4: Simple Linear Regression III

Outline. Topic 16 - Other Remedies. Ridge Regression. Ridge Regression. Ridge Regression. Robust Regression. Regression Trees. Piecewise Linear Model

schooling.log 7/5/2006

Everything taken from (Hair, Hult et al. 2017) but some formulas taken elswere or created by Erik Mønness.

Lab Session 1. Introduction to Eviews

CDAA No. 4 - Part Two - Multiple Regression - Initial Data Screening

WebSEM: Structural Equation Modeling Online

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

Module 25.1: nag lin reg Regression Analysis. Contents

CHAPTER 12 ASDA ANALYSIS EXAMPLES REPLICATION-MPLUS 5.21 GENERAL NOTES ABOUT ANALYSIS EXAMPLES REPLICATION

Stat 5100 Handout #19 SAS: Influential Observations and Outliers

ST706: Spring One-Way Random effects example.

1 Downloading files and accessing SAS. 2 Sorting, scatterplots, correlation and regression

Baruch College STA Senem Acet Coskun

**************************************************************************************************************** * Single Wave Analyses.

Fathom Dynamic Data TM Version 2 Specifications

range: [1,20] units: 1 unique values: 20 missing.: 0/20 percentiles: 10% 25% 50% 75% 90%

Solution to Bonus Questions

PSY 9556B (Feb 5) Latent Growth Modeling

Regression on the trees data with R

Beta-Regression with SPSS Michael Smithson School of Psychology, The Australian National University

Introduction to Stata: An In-class Tutorial

E-Campus Inferential Statistics - Part 2

Cut Out The Cut And Paste: SAS Macros For Presenting Statistical Output ABSTRACT INTRODUCTION

Box-Cox Transformation for Simple Linear Regression

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

can be used when running the LCVSEM macro from other macros to control the notes generated in the log area

Introduction to Mixed Models: Multivariate Regression

by John Barnard and Walter T. Federer Cornell University

Unified Visualizations of Structural Equation Models

Section 2.2: Covariance, Correlation, and Least Squares

CSSS 510: Lab 2. Introduction to Maximum Likelihood Estimation

I How does the formulation (5) serve the purpose of the composite parameterization

STAT 2607 REVIEW PROBLEMS Word problems must be answered in words of the problem.

SEM 1: Confirmatory Factor Analysis

Week 4: Simple Linear Regression II

SEM 1: Confirmatory Factor Analysis

Generalized Least Squares (GLS) and Estimated Generalized Least Squares (EGLS)

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

Contrasts and Multiple Comparisons

Chapter 16 The SIMLIN Procedure. Chapter Table of Contents

DESIGN OF EXPERIMENTS and ROBUST DESIGN

Two-Stage Least Squares

Annexes : Sorties SAS pour l'exercice 3. Code SAS. libname process 'G:\Enseignements\M2ISN-Series temp\sas\';

Detecting and Circumventing Collinearity or Ill-Conditioning Problems

SOCY7706: Longitudinal Data Analysis Instructor: Natasha Sarkisian. Panel Data Analysis: Fixed Effects Models

Instruction on JMP IN of Chapter 19

Model Diagnostic tests

Package mcemglm. November 29, 2015

May 24, Emil Coman 1 Yinghui Duan 2 Daren Anderson 3

Chapter 15: Forecasting

CREATING THE ANALYSIS

Moving Beyond Linearity

An introduction to SPSS

Linear regression Number of obs = 6,866 F(16, 326) = Prob > F = R-squared = Root MSE =

Chapter 9 Robust Regression Examples

MODEL DEVELOPMENT: VARIABLE SELECTION

An Econometric Study: The Cost of Mobile Broadband

The lavaan tutorial. Yves Rosseel Department of Data Analysis Ghent University (Belgium) December 18, 2017

NCSS Statistical Software

Package SSLASSO. August 28, 2018

piecewise ginireg 1 Piecewise Gini Regressions in Stata Jan Ditzen 1 Shlomo Yitzhaki 2 September 8, 2017

Stata versions 12 & 13 Week 4 Practice Problems

ZunZun.com. User-Selectable Polynomial. Sat Jan 14 09:49: local server time

Package REndo. November 8, 2017

lavaan: an R package for structural equation modeling and more Version (BETA)

Nina Zumel and John Mount Win-Vector LLC

Transcription:

Conditional and with No Measurement Error /* reg2ways.sas */ %include 'readsenic.sas'; title2 ''; proc reg; title3 'Conditional Regression'; model infrisk = stay census; proc calis cov; /* Analyze the covariance matrix (Default is corr) */ title3 ''; var infrisk stay census; /* Observed vars are in the data set */ lineqs /* Simultaneous equations, separated by commas */ infrisk = beta1 stay + beta2 census + epsilon; std /* Variances (not standard deviations) */ stay = phi11, census = phi22, epsilon = psi; /* Specify covariances in the model with the cov statement. Unmentioned pairs get covariance zero. */ cov stay census = phi12; bounds 0.0 < phi11 phi22 psi; /* Variances are greater than zero */ proc calis cov; /* Analyze the covariance matrix (Default is corr) */ title3 ' with census re-scaled'; var infrisk stay census100; /* Observed vars are in the data set */ lineqs /* Simultaneous equations, separated by commas */ infrisk = beta1 stay + beta2 census100 + epsilon; std /* Variances (not standard deviations) */ stay = phi11, census100 = phi22, epsilon = psi; /* Specify covariances in the model with the cov statement. Unmentioned pairs get covariance zero. */ cov stay census100 = phi12; bounds 0.0 < phi11 phi22 psi; /* Variances are greater than zero */ Page 1 of 11

SENIC data 1 Conditional Regression The REG Procedure Model: MODEL1 Dependent Variable: infrisk Prob of acquiring infection in hospital Number of Observations Read 113 Number of Observations Used 113 Analysis of Variance Sum of Mean Source DF Squares Square F Value Pr > F Model 2 61.60134 30.80067 24.24 <.0001 Error 110 139.77848 1.27071 Corrected Total 112 201.37982 Root MSE 1.12726 R-Square 0.3059 Dependent Mean 4.35487 Adj R-Sq 0.2933 Coeff Var 25.88504 Parameter Estimates Parameter Standard Variable Label DF Estimate Error Intercept Intercept 1 0.99950 0.56531 stay Av length of hospital stay, in 1 0.31908 0.06328 days census Aver # patients in hospital 1 0.00145 0.00078668 per day Parameter Estimates Variable Label DF t Value Pr > t Intercept Intercept 1 1.77 0.0798 stay Av length of hospital stay, in 1 5.04 <.0001 days census Aver # patients in hospital 1 1.84 0.0687 per day Page 2 of 11

SENIC data 2 Covariance Structure Analysis: Pattern and Initial Values LINEQS Model Statement Matrix Rows Columns ------Matrix Type------- Term 1 1 _SEL_ 3 4 SELECTION 2 _BETA_ 4 4 EQSBETA IMINUSINV 3 _GAMMA_ 4 3 EQSGAMMA 4 _PHI_ 3 3 SYMMETRIC The 1 Endogenous Variables Manifest Latent infrisk Manifest stay census Latent Error epsilon The 3 Exogenous Variables SENIC data 3 Covariance Structure Analysis: Pattern and Initial Values Manifest Variable Equations with Initial Estimates infrisk =.*stay +.*census + 1.0000 epsilon beta1 beta2 Variances of Exogenous Variables Variable Parameter Estimate stay phi11. census phi22. epsilon psi. Page 3 of 11

Covariances Among Exogenous Variables Var1 Var2 Parameter Estimate stay census phi12. SENIC data 4 Observations 113 Model Terms 1 Variables 3 Model Matrices 4 Informations 6 Parameters 6 Variable Mean Std Dev infrisk Prob of acquiring infection in hospital 4.35487 1.34091 stay Av length of hospital stay, in days 9.64832 1.91146 census Aver # patients in hospital per day 191.37168 153.75956 Set Covariances of Exogenous Manifest Variables stay census NOTE: Some initial estimates computed by two-stage LS method. SENIC data 5 Vector of Initial Estimates Parameter Estimate Type 1 beta1 0.31908 Matrix Entry: _GAMMA_[1:1] 2 beta2 0.00145 Matrix Entry: _GAMMA_[1:2] 3 phi11 3.65366 Matrix Entry: _PHI_[1:1] 4 phi12 139.27715 Matrix Entry: _PHI_[2:1] 5 phi22 23642 Matrix Entry: _PHI_[2:2] 6 psi 1.24802 Matrix Entry: _PHI_[3:3] Page 4 of 11

SENIC data 6 Levenberg-Marquardt Optimization Scaling Update of More (1978) Parameter Estimates 6 Functions (Observations) 6 Lower Bounds 3 Upper Bounds 0 Optimization Start Active Constraints 0 Objective Function 0 Max Abs Gradient Element 1.554392E-14 Radius 1 Optimization Results Iterations 0 Function Calls 2 Jacobian Calls 1 Active Constraints 0 Objective Function 0 Max Abs Gradient Element 1.554392E-14 Lambda 0 Actual Over Pred Change 0 Radius 1 ABSGCONV convergence criterion satisfied. NOTE: Moore-Penrose inverse is used in covariance matrix. NOTE: Covariance matrix for the estimates is not full rank. NOTE: The variance of some parameter estimates is zero or some parameter estimates are linearly related to other parameter estimates as shown in the following equations: phi22 = 23643-0.005891 * phi12 Page 5 of 11

SENIC data 7 Fit Function 0.0000 Goodness of Fit Index (GFI) 1.0000 GFI Adjusted for Degrees of Freedom (AGFI). Root Mean Square Residual (RMR) 0.0000 Standardized Root Mean Square Residual (SRMR) 0.0000 Parsimonious GFI (Mulaik, 1989) 0.0000 Chi-Square 0.0000 Chi-Square DF 0 Pr > Chi-Square <.0001 Independence Model Chi-Square 69.380 Independence Model Chi-Square DF 3 RMSEA Estimate 0.0000 RMSEA 90% Lower Confidence Limit. RMSEA 90% Upper Confidence Limit. ECVI Estimate 0.1111 ECVI 90% Lower Confidence Limit. ECVI 90% Upper Confidence Limit. Probability of Close Fit. Bentler's Comparative Fit Index 1.0000 Normal Theory Reweighted LS Chi-Square 0.0000 Akaike's Information Criterion 0.0000 Bozdogan's (1987) CAIC 0.0000 Schwarz's Bayesian Criterion 0.0000 McDonald's (1989) Centrality 1.0000 Bentler & Bonett's (1980) Non-normed Index. Bentler & Bonett's (1980) NFI 1.0000 James, Mulaik, & Brett (1982) Parsimonious NFI 0.0000 Z-Test of Wilson & Hilferty (1931). Bollen (1986) Normed Index Rho1. Bollen (1988) Non-normed Index Delta2 1.0000 Hoelter's (1983) Critical N. SENIC data 8 Manifest Variable Equations with Estimates infrisk = 0.3191*stay + 0.00145*census + 1.0000 epsilon Std Err 0.0627 beta1 0.000780 beta2 t Value 5.0878 1.8554 Page 6 of 11

Variances of Exogenous Variables Standard Variable Parameter Estimate Error t Value stay phi11 3.65366 0.47577 7.68 census phi22 23642 0.14408 164089 epsilon psi 1.24802 0.16677 7.48 Covariances Among Exogenous Variables Standard Var1 Var2 Parameter Estimate Error t Value stay census phi12 139.27715 24.45425 5.70 SENIC data 9 Manifest Variable Equations with Standardized Estimates infrisk = 0.4548*stay + 0.1659*census + 0.8331 epsilon beta1 beta2 Squared Multiple Correlations Error Total Variable Variance Variance R-Square 1 infrisk 1.24802 1.79803 0.3059 Correlations Among Exogenous Variables Var1 Var2 Parameter Estimate stay census phi12 0.47389 Page 7 of 11

SENIC data 10 with census re-scaled Covariance Structure Analysis: Pattern and Initial Values LINEQS Model Statement Matrix Rows Columns ------Matrix Type------- Term 1 1 _SEL_ 3 4 SELECTION 2 _BETA_ 4 4 EQSBETA IMINUSINV 3 _GAMMA_ 4 3 EQSGAMMA 4 _PHI_ 3 3 SYMMETRIC The 1 Endogenous Variables Manifest Latent infrisk The 3 Exogenous Variables Manifest stay census100 Latent Error epsilon SENIC data 11 with census re-scaled Covariance Structure Analysis: Pattern and Initial Values Manifest Variable Equations with Initial Estimates infrisk =.*stay +.*census100 + 1.0000 epsilon beta1 beta2 Variances of Exogenous Variables Variable Parameter Estimate stay phi11. census100 phi22. epsilon psi. Page 8 of 11

Covariances Among Exogenous Variables Var1 Var2 Parameter Estimate stay census100 phi12. SENIC data 12 with census re-scaled Observations 113 Model Terms 1 Variables 3 Model Matrices 4 Informations 6 Parameters 6 Variable Mean Std Dev infrisk Prob of acquiring infection in hospital 4.35487 1.34091 stay Av length of hospital stay, in days 9.64832 1.91146 census100 Aver # patients in hospital per day in 100s 1.91372 1.53760 Set Covariances of Exogenous Manifest Variables stay census100 NOTE: Some initial estimates computed by two-stage LS method. SENIC data 13 with census re-scaled Vector of Initial Estimates Parameter Estimate Type 1 beta1 0.31908 Matrix Entry: _GAMMA_[1:1] 2 beta2 0.14465 Matrix Entry: _GAMMA_[1:2] 3 phi11 3.65366 Matrix Entry: _PHI_[1:1] 4 phi12 1.39277 Matrix Entry: _PHI_[2:1] 5 phi22 2.36420 Matrix Entry: _PHI_[2:2] 6 psi 1.24802 Matrix Entry: _PHI_[3:3] Page 9 of 11

SENIC data 14 with census re-scaled Levenberg-Marquardt Optimization Scaling Update of More (1978) Parameter Estimates 6 Functions (Observations) 6 Lower Bounds 3 Upper Bounds 0 Optimization Start Active Constraints 0 Objective Function 4.440892E-16 Max Abs Gradient Element 4.369321E-16 Radius 1 Optimization Results Iterations 0 Function Calls 2 Jacobian Calls 1 Active Constraints 0 Objective Function 4.440892E-16 Max Abs Gradient Element 4.369321E-16 Lambda 0 Actual Over Pred Change 0 Radius 1 ABSGCONV convergence criterion satisfied. SENIC data 15 with census re-scaled Fit Function 0.0000 Goodness of Fit Index (GFI) 1.0000 GFI Adjusted for Degrees of Freedom (AGFI). Root Mean Square Residual (RMR) 0.0000 Standardized Root Mean Square Residual (SRMR) 0.0000 Parsimonious GFI (Mulaik, 1989) 0.0000 Chi-Square 0.0000 Chi-Square DF 0 Pr > Chi-Square <.0001 Independence Model Chi-Square 69.380 Independence Model Chi-Square DF 3 RMSEA Estimate 0.0000 RMSEA 90% Lower Confidence Limit. RMSEA 90% Upper Confidence Limit. ECVI Estimate 0.1111 ECVI 90% Lower Confidence Limit. ECVI 90% Upper Confidence Limit. Probability of Close Fit. Bentler's Comparative Fit Index 1.0000 Normal Theory Reweighted LS Chi-Square 0.0000 Akaike's Information Criterion 0.0000 Page 10 of 11

Bozdogan's (1987) CAIC 0.0000 Schwarz's Bayesian Criterion 0.0000 McDonald's (1989) Centrality 1.0000 Bentler & Bonett's (1980) Non-normed Index. Bentler & Bonett's (1980) NFI 1.0000 James, Mulaik, & Brett (1982) Parsimonious NFI 0.0000 Z-Test of Wilson & Hilferty (1931). Bollen (1986) Normed Index Rho1. Bollen (1988) Non-normed Index Delta2 1.0000 Hoelter's (1983) Critical N. SENIC data 16 with census re-scaled Manifest Variable Equations with Estimates infrisk = 0.3191*stay + 0.1447*census100 + 1.0000 epsilon Std Err 0.0627 beta1 0.0780 beta2 t Value 5.0878 1.8554 Variances of Exogenous Variables Standard Variable Parameter Estimate Error t Value stay phi11 3.65366 0.48824 7.48 census100 phi22 2.36420 0.31593 7.48 epsilon psi 1.24802 0.16677 7.48 Covariances Among Exogenous Variables Standard Var1 Var2 Parameter Estimate Error t Value stay census100 phi12 1.39277 0.30732 4.53 (Standardized estimates skipped) Page 11 of 11