umxCP & umxIP practical

Slides:



Advertisements
Similar presentations
Structural Equation Modeling
Advertisements

Tests of Significance for Regression & Correlation b* will equal the population parameter of the slope rather thanbecause beta has another meaning with.
Air temperature Metabolic rate Fatreserves burned Notion of a latent variable [O 2 ]
Polynomial Regression and Transformations STA 671 Summer 2008.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
SOC 681 James G. Anderson, PhD
Objectives (BPS chapter 24)
Data Handling & Analysis Polynomials and model fit Andrew Jackson
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
What makes one estimator better than another Estimator is jargon term for method of estimating.
Correlation and Regression. Spearman's rank correlation An alternative to correlation that does not make so many assumptions Still measures the strength.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Econ 140 Lecture 131 Multiple Regression Models Lecture 13.
Hypothesis Testing: Type II Error and Power.
Multiple Regression Models
Structural Equation Modeling
Change Score Analysis David A. Kenny December 15, 2013.
Introduction to CFA. LEARNING OBJECTIVES: Upon completing this chapter, you should be able to do the following: Distinguish between exploratory factor.
Inference for regression - Simple linear regression
Structural Equation Modeling 3 Psy 524 Andrew Ainsworth.
Hypothesis Testing.
Stat13-lecture 25 regression (continued, SE, t and chi-square) Simple linear regression model: Y=  0 +  1 X +  Assumption :  is normal with mean 0.
Confirmatory Factor Analysis Using OpenMx & R
CJT 765: Structural Equation Modeling Class 7: fitting a model, fit indices, comparingmodels, statistical power.
Multiple regression - Inference for multiple regression - A case study IPS chapters 11.1 and 11.2 © 2006 W.H. Freeman and Company.
Practical SCRIPT: F:\meike\2010\Multi_prac\MultivariateTwinAnalysis_MatrixRaw.r DATA: DHBQ_bs.dat.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
Tests of Random Number Generators
CFA: Basics Beaujean Chapter 3. Other readings Kline 9 – a good reference, but lumps this entire section into one chapter.
Environmental Modeling Basic Testing Methods - Statistics III.
Chapter 22: Building Multiple Regression Models Generalization of univariate linear regression models. One unit of data with a value of dependent variable.
MTMM Byrne Chapter 10. MTMM Multi-trait multi-method – Traits – the latent factors you are trying to measure – Methods – the way you are measuring the.
Chapter 14: Inference for Regression. A brief review of chapter 4... (Regression Analysis: Exploring Association BetweenVariables )  Bi-variate data.
Time Series Analysis Lecture 11
CJT 765: Structural Equation Modeling Class 8: Confirmatory Factory Analysis.
Advanced statistics for master students Loglinear models II The best model selection and models for ordinal variables.
Examples. Path Model 1 Simple mediation model. Much of the influence of Family Background (SES) is indirect.
ALISON BOWLING CONFIRMATORY FACTOR ANALYSIS. REVIEW OF EFA Exploratory Factor Analysis (EFA) Explores the data All measured variables are related to every.
September 28, 2000 Improved Simultaneous Data Reconciliation, Bias Detection and Identification Using Mixed Integer Optimization Methods Presented by:
Evaluation of structural equation models Hans Baumgartner Penn State University.
Information criteria What function fits best? The more free parameters a model has the higher will be R 2. The more parsimonious a model is the lesser.
The Idea of the Statistical Test. A statistical test evaluates the "fit" of a hypothesis to a sample.
F TESTS RELATING TO GROUPS OF EXPLANATORY VARIABLES 1 We now come to more general F tests of goodness of fit. This is a test of the joint explanatory power.
Hypothesis Testing and Statistical Significance
Recommended modeling approach Version 2.0. The law of conflicting data Axiom Data is true Implication Conflicting data implies model misspecification.
The SweSAT Vocabulary (word): understanding of words and concepts. Data Sufficiency (ds): numerical reasoning ability. Reading Comprehension (read): Swedish.
Testing the Equality of Means and Variances in Over-Time Data David A. Kenny.
CFA: Basics Byrne Chapter 3 Brown Chapter 3 (40-53)
 Understand how to determine a data point is influential  Understand the difference between Extrapolation and Interpolation  Understand that lurking.
Chapter 15 Multiple Regression Model Building
AP Biology Intro to Statistics
AP Statistics Chapter 14 Section 1.
Correlation and Simple Linear Regression
Correlation, Regression & Nested Models
Statistics in MSmcDESPOT
CJT 765: Structural Equation Modeling
AP Biology Intro to Statistics
The Trait Model of Change
Correlation and Simple Linear Regression
APIM with Indistinguishable Dyads: SEM Estimation
Correlation and Simple Linear Regression
Linear Model Selection and regularization
One Way ANOVAs One Way ANOVAs
Univariate Modeling in umx
More About Tests Notes from
Autocorrelation MS management.
Adding variables. There is a difference between assessing the statistical significance of a variable acting alone and a variable being added to a model.
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

umxCP & umxIP practical Timothy C. Bates umxCP & umxIP practical

Let’s chat! https://sli.do Event: #P268

umxCP() Use umxCP() to build a m1: A common factor model of the GFF Does it fit significantly worse than a base model m0? umxACEv() data(GFF) baseNames <- c("gff", "hap", "sat", "AD", "SOMA", "SOC") x = umx_scale_wide_twin_data(baseNames, suffix = "_T", data = GFF) mzData <- subset(x, zyg_6grp == "MZFF") dzData <- subset(x, zyg_6grp == "DZFF")

umxCP parameters umxCP(name = "CP", selDVs, dzData, mzData, sep = NULL, nFac = 1, freeLowerA = FALSE, freeLowerC = FALSE, freeLowerE = FALSE, correlatedA = FALSE, equateMeans = TRUE, dzAr = 0.5, dzCr = 1, addStd = T, addCI = TRUE, autoRun = getOption("umx_auto_run"), optimizer = NULL)

Running umxCP m1 = umxCP(selDVs = baseNames, sep = "_T", mzData = mzData, dzData = dzData)

What does this mean? 'log Lik.' 30945.15 (df=33) Common Factor paths | | A| C| E| |:---------------|---:|----:|----:| |Common.factor.1 | 0.7| 0.38| 0.61| What does this mean?

Loading of each trait on the Common Factors | | CP1| |:----|-----:| |gff | 0.44| |hap | 0.81| |sat | 0.82| |AD | -0.66| |SOMA | -0.43| |SOC | -0.40|

Improve the CP model fit Make m2 = umxCP() model with 2 common factors What did you need to set to do that? Is it better than the 1 factor model? What umx function lets you compare models? Does it (still) fit significantly worse than the baseline model? Can you compare more than one model?

umxCompare umxCompare(base = NULL, comparison = NULL, all = TRUE, digits = 3, report = c("markdown", "inline", "html", "report")) umxCompare(base = m1, comparison =c(m2, m3) ) umxCompare(base = c(m1, m2), comparison =c(m2, m3) )

Common Pathway fit with different #s of factors ✓ Build a 1-factor model ✓ Build a 2-factor model Build a 3-factor model Test for a 1 factor vs a 2 factor vs a 3 factor CP?

Common Pathway Modification Test for each common factor being A and C (only – no E)? Need to drop E from the common factors Test for every specific factor being only E? Hypothesis: The residuals are measurement error (or at least unshared effects) Need to drop what from the residuals? Fit an ADE model Does it fit as well or better than ACE? What parameter needed to be changed?

Functions that will help: parameters() parameters(x, pattern = ".*", digits = 2, thresh = c("all", "above", "below", "NS", "sig"), b = NULL) parameters(m1, pattern="cp")

parameters(m1, pattern="cp") name Estimate 7 a_cp_r1c1 0.70 8 c_cp_r1c1 0.38 9 e_cp_r1c1 0.61 28 cp_loadings_r1c1 0.45 29 cp_loadings_r2c1 0.83 30 cp_loadings_r3c1 0.82 31 cp_loadings_r4c1 -0.70 32 cp_loadings_r5c1 -0.46 33 cp_loadings_r6c1 -0.39

Functions that will help: umxModify umxModify(lastFit, update = NULL, master = NULL, regex = FALSE, free = FALSE, value = 0, newlabels = NULL, freeToStart = NA, name = NULL, comparison = FALSE, autoRun = TRUE)

Common Pathway Modification Test for each common factor being A and C (only – no E)? Need to drop E from the common factors

Common Pathway Modification Test for every specific factor being only E? Hypothesis: The residuals are measurement error (or at least unshared effects) Need to drop what from the residuals?

Common Pathway Modification Fit an ADE model What parameter needed to be changed? Does it fit as well or better than ACE?

Common Pathway Modification: AP (advanced placement question)  Professor Janeway thinks common environment determines one common factor, while the others are a mixture of A and C Can you test her hypothesis?

Same again for umxIP Build a 1 factor IP model ip1 = umxIP() Test for a 1 factor vs a 2 factor vs a 3 factor IP? Test for every A factor having the same loadings? What does that imply? Can you test for every specific factor being only E? Can you fit an ADE model?

Identification: How many common factors are allowed? Total parameters/source of variance (nv: number of phenotypes) must be < (nv ∗ (nv + 1))/2 For a single common factor with only 2 indicators, equate the 2 factor loadings Alternatively, remove the common factor and add a correlated residual If in doubt, try mxCheckIdentification() When not identified, gives offending parameters

Questions Is a better AIC higher or lower? Is AIC -2432 or -1980 to be preferred?