Regression without measurement error using proc calis

Similar documents
SAS Example 3: Deliberately create numerical problems

Instrumental variables regression on the Poverty data

* IVEware Analysis Examples Replication for ASDA 2nd Edition * Berglund April 2017 * Chapter 13 ;

UNIVERSITY OF TORONTO MISSISSAUGA April 2009 Examinations STA431H5S Professor Jerry Brunner Duration: 3 hours

Introduction to Confirmatory Factor Analysis

Introduction to Structural Equation Modeling with Latent Variables

C:\Users\Rex Kline\AppData\Local\Temp\AmosTemp\AmosScratch.amw. Date: Friday, December 5, 2014 Time: 11:20:30 AM

The Role of Leader Motivating Language in Employee Absenteeism (Mayfield: 2009)

Multi-sample structural equation models with mean structures, with special emphasis on assessing measurement invariance in cross-national research

Chapter 13 Introduction to Structural Equation Modeling

The use of structural equation modeling to examine consumption of pornographic materials in Chinese adolescents in Hong Kong

EVALUATION OF STRUCTURAL EQUATION MODELS

DATE: 9/ L I S R E L 8.80

THE GENERAL STRUCTURAL EQUATION MODEL WITH LATENT VARIATES

Handout 1: Predicting GPA from SAT

CONFIRMATORY FACTOR ANALYSIS

SEM Day 1 Lab Exercises SPIDA 2007 Dave Flora

Contrasting Marginal and Mixed Effects Models Recall: two approaches to handling dependence in Generalized Linear Models:

Psychology 454: Latent Variable Modeling How do you know if a model works?

Covariance Structure Approach to Within-Cases

CONFIRMATORY FACTOR ANALYSIS

Measuring relationships among multiple responses

SC705: Advanced Statistics Instructor: Natasha Sarkisian Class notes: Model Building Strategies

SEM Day 3 Lab Exercises SPIDA 2007 Dave Flora

Step 2: Select Analyze, Mixed Models, and Linear.

Confirmatory Factor Analysis. Psych 818 DeShon

Case of single exogenous (iv) variable (with single or multiple mediators) iv à med à dv. = β 0. iv i. med i + α 1

SAS/STAT 14.1 User s Guide. Introduction to Structural Equation Modeling with Latent Variables

Repeated Measures Part 2: Cartoon data

Multi-group analyses for measurement invariance parameter estimates and model fit (ML)

SPECIAL TOPICS IN REGRESSION ANALYSIS

dm'log;clear;output;clear'; options ps=512 ls=99 nocenter nodate nonumber nolabel FORMCHAR=" = -/\<>*"; ODS LISTING;

Introduction to SAS proc mixed

THE GENERAL STRUCTURAL EQUATION MODEL WITH LATENT VARIATES

Introduction to SAS proc mixed

Subject-specific observed profiles of log(fev1) vs age First 50 subjects in Six Cities Study

Compiled by: Assoc. Prof. Dr Bahaman Abu Samah Department of Professional Developmentand Continuing Education Faculty of Educational Studies

Structural Equation Modeling and Confirmatory Factor Analysis. Types of Variables

Title. Description. Remarks and examples. stata.com. stata.com. Variable notation. methods and formulas for sem Methods and formulas for sem

Chapter 9. Multivariate and Within-cases Analysis. 9.1 Multivariate Analysis of Variance

unadjusted model for baseline cholesterol 22:31 Monday, April 19,

Stat 302 Statistical Software and Its Applications SAS: Simple Linear Regression

An Introduction to Path Analysis

Booklet of Code and Output for STAC32 Final Exam

General Linear Model (Chapter 4)

Model Selection Procedures

9.2 User s Guide SAS/STAT. The CALIS Procedure. (Book Excerpt) SAS Documentation

Failure Time of System due to the Hot Electron Effect

Introduction to Structural Equation Modeling

Latent Variable Analysis

Effect of Centering and Standardization in Moderation Analysis

Topic 20: Single Factor Analysis of Variance

Class Notes: Week 8. Probit versus Logit Link Functions and Count Data

An Introduction to Mplus and Path Analysis

Pelatihan Statistika. Jonathan Sarwono

****Lab 4, Feb 4: EDA and OLS and WLS

Psychology 454: Latent Variable Modeling How do you know if a model works?

Odor attraction CRD Page 1

Week 3: Simple Linear Regression

An Introduction to Path Analysis

Nonrecursive Models Highlights Richard Williams, University of Notre Dame, Last revised April 6, 2015

ST505/S697R: Fall Homework 2 Solution.

MIXED MODELS FOR REPEATED (LONGITUDINAL) DATA PART 2 DAVID C. HOWELL 4/1/2010

Inference using structural equations with latent variables

Multicollinearity Exercise

Variance. Standard deviation VAR = = value. Unbiased SD = SD = 10/23/2011. Functional Connectivity Correlation and Regression.

Outline. Linear OLS Models vs: Linear Marginal Models Linear Conditional Models. Random Intercepts Random Intercepts & Slopes

Introduction to Structural Equation Modeling Dominique Zephyr Applied Statistics Lab

Factor analysis. George Balabanis

Section I. Define or explain the following terms (3 points each) 1. centered vs. uncentered 2 R - 2. Frisch theorem -

Example 7b: Generalized Models for Ordinal Longitudinal Data using SAS GLIMMIX, STATA MEOLOGIT, and MPLUS (last proportional odds model only)

3 Variables: Cyberloafing Conscientiousness Age

Package semgof. February 20, 2015

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

over Time line for the means). Specifically, & covariances) just a fixed variance instead. PROC MIXED: to 1000 is default) list models with TYPE=VC */

CO2 Handout. t(cbind(co2$type,co2$treatment,model.matrix(~type*treatment,data=co2)))

Topic 23: Diagnostics and Remedies

SAS Code: Joint Models for Continuous and Discrete Longitudinal Data

Chapter 8 (More on Assumptions for the Simple Linear Regression)

In Class Review Exercises Vartanian: SW 540

Lecture 3: Inference in SLR

Exploring Cultural Differences with Structural Equation Modelling

Simple Linear Regression

Chapter 5: Multivariate Analysis and Repeated Measures

COMPREHENSIVE WRITTEN EXAMINATION, PAPER III FRIDAY AUGUST 26, 2005, 9:00 A.M. 1:00 P.M. STATISTICS 174 QUESTION

ssh tap sas913, sas

Chapter 6 Multiple Regression

A Re-Introduction to General Linear Models (GLM)

Introduction to Confirmatory Factor Analysis

Using Structural Equation Modeling to Conduct Confirmatory Factor Analysis

Topic 14: Inference in Multiple Regression

Description Remarks and examples Reference Also see

Essential of Simple regression

Multivariate Regression: Part I

ANOVA Longitudinal Models for the Practice Effects Data: via GLM

SAS Syntax and Output for Data Manipulation: CLDP 944 Example 3a page 1

STAT 5200 Handout #23. Repeated Measures Example (Ch. 16)

Answers to Problem Set #4

T-test: means of Spock's judge versus all other judges 1 12:10 Wednesday, January 5, judge1 N Mean Std Dev Std Err Minimum Maximum

Lecture 3 Linear random intercept models

Transcription:

Regression without measurement error using proc calis /* calculus2.sas */ options linesize=79 pagesize=500 noovp formdlim='_'; title 'Calculus 2: Regression with no measurement error'; title2 ''; data math; infile 'calculus.data' firstobs=2; input id hscalc hsengl hsgpa test grade; /* Exclude some output you really don't want to see. The (persist) option means keep doing it. */ ods exclude Calis.ModelSpec.LINEQSEqInit (persist) Calis.ModelSpec.LINEQSVarExogInit (persist) Calis.ModelSpec.LINEQSCovExogInit (persist) Calis.ML.SqMultCorr (persist) Calis.StandardizedResults.LINEQSEqStd (persist) Calis.StandardizedResults.LINEQSVarExogStd (persist) Calis.StandardizedResults.LINEQSCovExogStd (persist) ; proc calis cov ; /* Analyze the covariance matrix (Default is corr) */ title3 ''; var grade hsgpa test; /* Declare observed vars */ lineqs /* Simultaneous equations, separated by commas */ grade = beta hsgpa + beta test + epsilon; std /* Variances (not standard deviations) */ hsgpa = phi11, test = phi22, epsilon = psi; cov /* Covariances */ hsgpa test = phi12; /* Unmentioned pairs get covariance zero */ bounds 0.0 < phi11, 0.0 < phi22, 0.0 < psi; /* Setting bounds is optional, but recommended. SAS will complain loudly if you hit a boundary, making it easier to notice if the numerical search for the MLE leaves the parameter space. */ proc calis cov ; /* Analyze the covariance matrix (Default is corr) */ title3 ''; var grade hsgpa test; /* Declare observed vars */ lineqs /* Simultaneous equations, separated by commas */ grade = beta1 hsgpa + beta2 test + epsilon; std /* Variances (not standard deviations) */ hsgpa = phi11, test = phi22, epsilon = psi; cov /* Covariances */ hsgpa test = phi12; /* Unmentioned pairs get covariance zero */ bounds 0.0 < phi11, 0.0 < phi22, 0.0 < psi; proc reg; title3 'Ordinary regression for comparison with saturated model'; model grade = hsgpa test; Page 1 of 8

Calculus 2: Regression with no measurement error 1 Covariance Structure Analysis: Model and Initial Values Modeling Information Data Set WORK.MATH N Records Read 287 N Records Used 287 N Obs 287 Model Type LINEQS Analysis Covariances Variables in the Model Endogenous Manifest grade Latent Exogenous Manifest hsgpa test Latent Error epsilon Number of Endogenous Variables = 1 Number of Exogenous Variables = 3 Calculus 2: Regression with no measurement error 2 Covariance Structure Analysis: Descriptive Statistics Simple Statistics Variable Mean Std Dev grade 60.98955 17.73355 hsgpa 80.98293 5.97063 test 8.81533 3.56910 Calculus 2: Regression with no measurement error 3 Covariance Structure Analysis: Optimization Initial Estimation Methods 1 Observed Moments of Variables 2 McDonald Method Page 2 of 8

Optimization Start Parameter Estimates N Parameter Estimate Gradient Lower Bound Upper Bound 1 beta 1.43813 0.00524.. 2 phi11 35.64841 7.9818E-19 0. 3 phi22 12.73851 2.4787E-18 0. 4 psi 185.81825-1.213E-18 0. 5 phi12 7.24928-5.15E-18.. Value of Objective Function = 0.0005028133 Calculus 2: Regression with no measurement error 4 Covariance Structure Analysis: Optimization Levenberg-Marquardt Optimization Scaling Update of More (1978) Parameter Estimates 5 Functions (Observations) 6 Lower Bounds 3 Upper Bounds 0 Optimization Start Active Constraints 0 Objective Function 0.0005028133 Max Abs Gradient Element 0.0052381077 Radius 1 Actual Max Abs Over Rest Func Act Objective Obj Fun Gradient Pred Iter arts Calls Con Function Change Element Lambda Change 1 0 4 0 0.0004825 0.000020 1.091E-7 0 1.000 Optimization Results Iterations 1 Function Calls 7 Jacobian Calls 3 Active Constraints 0 Objective Function 0.0004825446 Max Abs Gradient Element 1.0907832E-7 Lambda 0 Actual Over Pred Change 1 Radius 0.0127338107 Convergence criterion (ABSGCONV=0.00001) satisfied. Page 3 of 8

Calculus 2: Regression with no measurement error 5 Covariance Structure Analysis: Maximum Likelihood Estimation Fit Summary Modeling Info N Observations 287 N Variables 3 N Moments 6 N Parameters 5 N Active Constraints 0 Baseline Model Function Value 0.6496 Baseline Model Chi-Square 185.7968 Baseline Model Chi-Square DF 3 Pr > Baseline Model Chi-Square <.0001 Absolute Index Fit Function 0.0005 Chi-Square 0.1380 Chi-Square DF 1 Pr > Chi-Square 0.7103 Z-Test of Wilson & Hilferty -0.5537 Hoelter Critical N 7961 Root Mean Square Residual (RMSR) 0.4368 Standardized RMSR (SRMSR) 0.0057 Goodness of Fit Index (GFI) 0.9997 Parsimony Index Adjusted GFI (AGFI) 0.9981 Parsimonious GFI 0.3332 RMSEA Estimate 0.0000 RMSEA Lower 90% Confidence Limit 0.0000 RMSEA Upper 90% Confidence Limit 0.1134 Probability of Close Fit 0.7941 ECVI Estimate 0.0359 ECVI Lower 90% Confidence Limit 0.0390 ECVI Upper 90% Confidence Limit 0.0520 Akaike Information Criterion 10.1380 Bozdogan CAIC 33.4354 Schwarz Bayesian Criterion 28.4354 McDonald Centrality 1.0015 Incremental Index Bentler Comparative Fit Index 1.0000 Bentler-Bonett NFI 0.9993 Bentler-Bonett Non-normed Index 1.0141 Bollen Normed Index Rho1 0.9978 Bollen Non-normed Index Delta2 1.0047 James et al. Parsimonious NFI 0.3331 Calculus 2: Regression with no measurement error 6 Covariance Structure Analysis: Maximum Likelihood Estimation Linear Equations grade = 1.4304*hsgpa + 1.4304*test + 1.0000 epsilon Std Err 0.1016 beta 0.1016 beta t Value 14.0724 14.0724 Page 4 of 8

Estimates for Variances of Exogenous Variables Variable Standard Type Variable Parameter Estimate Error t Value Observed hsgpa phi11 35.64841 2.98107 11.95826 test phi22 12.73851 1.06525 11.95826 Error epsilon psi 185.81825 15.53890 11.95826 Covariances Among Exogenous Variables Standard Var1 Var2 Parameter Estimate Error t Value hsgpa test phi12 7.24928 1.33099 5.44653 Calculus 2: Regression with no measurement error 7 Covariance Structure Analysis: Model and Initial Values Modeling Information Data Set WORK.MATH N Records Read 287 N Records Used 287 N Obs 287 Model Type LINEQS Analysis Covariances Variables in the Model Endogenous Manifest grade Latent Exogenous Manifest hsgpa test Latent Error epsilon Number of Endogenous Variables = 1 Number of Exogenous Variables = 3 Page 5 of 8

Calculus 2: Regression with no measurement error 8 Covariance Structure Analysis: Descriptive Statistics Simple Statistics Variable Mean Std Dev grade 60.98955 17.73355 hsgpa 80.98293 5.97063 test 8.81533 3.56910 Calculus 2: Regression with no measurement error 9 Covariance Structure Analysis: Optimization Initial Estimation Methods 1 Observed Moments of Variables 2 McDonald Method 3 Two-Stage Least Squares Optimization Start Parameter Estimates N Parameter Estimate Gradient Lower Bound Upper Bound 1 beta1 1.46805 1.2908E-17.. 2 beta2 1.34956 1.4041E-17.. 3 phi11 35.64841 1.0173E-18 0. 4 phi22 12.73851 2.8469E-18 0. 5 psi 185.72484-1.02E-19 0. 6 phi12 7.24928-5.582E-18.. Value of Objective Function = 0 Calculus 2: Regression with no measurement error 10 Covariance Structure Analysis: Optimization Levenberg-Marquardt Optimization Scaling Update of More (1978) Parameter Estimates 6 Functions (Observations) 6 Lower Bounds 3 Upper Bounds 0 Page 6 of 8

Optimization Start Active Constraints 0 Objective Function 0 Max Abs Gradient Element 1.404108E-17 Radius 1 Optimization Results Iterations 0 Function Calls 4 Jacobian Calls 1 Active Constraints 0 Objective Function 0 Max Abs Gradient Element 1.404108E-17 Lambda 0 Actual Over Pred Change 0 Radius 1 Convergence criterion (ABSGCONV=0.00001) satisfied. Calculus 2: Regression with no measurement error 11 Covariance Structure Analysis: Maximum Likelihood Estimation Fit Summary Modeling Info N Observations 287 N Variables 3 N Moments 6 N Parameters 6 N Active Constraints 0 Baseline Model Function Value 0.6496 Baseline Model Chi-Square 185.7968 Baseline Model Chi-Square DF 3 Pr > Baseline Model Chi-Square <.0001 Absolute Index Fit Function 0.0000 Chi-Square 0.0000 Chi-Square DF 0 Pr > Chi-Square. Z-Test of Wilson & Hilferty. Hoelter Critical N. Root Mean Square Residual (RMSR) 0.0000 Standardized RMSR (SRMSR) 0.0000 Goodness of Fit Index (GFI) 1.0000 Parsimony Index Adjusted GFI (AGFI). Parsimonious GFI 0.0000 RMSEA Estimate. Probability of Close Fit. ECVI Estimate 0.0426 ECVI Lower 90% Confidence Limit. ECVI Upper 90% Confidence Limit. Akaike Information Criterion 12.0000 Bozdogan CAIC 39.9569 Schwarz Bayesian Criterion 33.9569 McDonald Centrality 1.0000 Incremental Index Bentler Comparative Fit Index 1.0000 Bentler-Bonett NFI 1.0000 Bentler-Bonett Non-normed Index. Bollen Normed Index Rho1. Bollen Non-normed Index Delta2 1.0000 James et al. Parsimonious NFI 0.0000 Page 7 of 8

Calculus 2: Regression with no measurement error 12 Covariance Structure Analysis: Maximum Likelihood Estimation Linear Equations grade = 1.4680*hsgpa + 1.3496*test + 1.0000 epsilon Std Err 0.1435 beta1 0.2401 beta2 t Value 10.2283 5.6207 Estimates for Variances of Exogenous Variables Variable Standard Type Variable Parameter Estimate Error t Value Observed hsgpa phi11 35.64841 2.98107 11.95826 test phi22 12.73851 1.06525 11.95826 Error epsilon psi 185.72484 15.53109 11.95826 Covariances Among Exogenous Variables Standard Var1 Var2 Parameter Estimate Error t Value hsgpa test phi12 7.24928 1.33099 5.44653 Calculus 2: Regression with no measurement error 13 Ordinary regression for comparison with saturated model The REG Procedure Model: MODEL1 Dependent Variable: grade Number of Observations Read 287 Number of Observations Used 287 Analysis of Variance Sum of Mean Source DF Squares Square F Value Pr > F Model 2 36824 18412 98.44 <.0001 Error 284 53117 187.03276 Corrected Total 286 89941 Parameter Estimates Parameter Standard Variable DF Estimate Error t Value Pr > t Intercept 1-69.79413 11.15172-6.26 <.0001 hsgpa 1 1.46805 0.14403 10.19 <.0001 test 1 1.34956 0.24095 5.60 <.0001 Page 8 of 8