Converting syntax to an equation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Converting syntax to an equation

Baglioni, Tony

All,

 

A colleague asked me what should be a simple question and I have no answer for him.  He has some basic manova syntax (below) and he would like to know what the equation from such a model would look like.  Excluding all of the marginal means, etc., can anyone answer that question for him?  Thanks very much.

 

Tony

 

GLM

perdelta costfairness BY naattph nattslf spolicy2 aware

  /CONTRAST (naattph)=Simple /CONTRAST (nattslf)=Simple /CONTRAST

  (spolicy2)=Simple

  /METHOD = SSTYPE(3)

  /INTERCEPT = INCLUDE

  /PLOT = PROFILE( spolicy2*naattph spolicy2*nattslf)

  /EMMEANS = TABLES(OVERALL)

  /EMMEANS = TABLES(naattph) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(spolicy2) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*nattslf) COMPARE (naattph) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*nattslf) COMPARE (nattslf) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (naattph) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (nattslf) ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)

  /PRINT = DESCRIPTIVE ETASQ

  /CRITERIA = ALPHA(.05)

  /DESIGN = naattph nattslf spolicy2 aware naattph*nattslf naattph*spolicy2 nattslf*spolicy2.

 

A J Baglioni jr

McIntire School of Commerce

University of Virginia

Rouss & Robertson Halls, East Lawn

P.O. Box 400173

Charlottesville, Va  22904-4173

434.924.4961

 

Reply | Threaded
Open this post in threaded view
|

Re: Converting syntax to an equation

David Marso
Administrator
Tony,
Y=XB+U
Where each of these are matrices:
Y (n x p)
B (p x k)
U (n x p)
n= number of respondents
p= number of dependent variables
k= the number of columns in the design matrix (including constant vector).
For additional info I refer you/him to the algorithms:
http://publib.boulder.ibm.com/infocenter/spssstat/v20r0m0/index.jsp?topic=%2Fcom.ibm.spss.statistics.help%2Falg_glm-uni-multi.htm
HTH, David
----
Baglioni, Tony wrote
All,

A colleague asked me what should be a simple question and I have no answer for him.  He has some basic manova syntax (below) and he would like to know what the equation from such a model would look like.  Excluding all of the marginal means, etc., can anyone answer that question for him?  Thanks very much.

Tony

GLM
perdelta costfairness BY naattph nattslf spolicy2 aware
  /CONTRAST (naattph)=Simple /CONTRAST (nattslf)=Simple /CONTRAST
  (spolicy2)=Simple
  /METHOD = SSTYPE(3)
  /INTERCEPT = INCLUDE
  /PLOT = PROFILE( spolicy2*naattph spolicy2*nattslf)
  /EMMEANS = TABLES(OVERALL)
  /EMMEANS = TABLES(naattph) COMPARE ADJ(BONFERRONI)
  /EMMEANS = TABLES(nattslf) COMPARE ADJ(BONFERRONI)
  /EMMEANS = TABLES(spolicy2) COMPARE ADJ(BONFERRONI)
  /EMMEANS = TABLES(naattph*nattslf) COMPARE (naattph) ADJ(BONFERRONI)
  /EMMEANS = TABLES(naattph*nattslf) COMPARE (nattslf) ADJ(BONFERRONI)
  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (naattph) ADJ(BONFERRONI)
  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)
  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (nattslf) ADJ(BONFERRONI)
  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)
  /PRINT = DESCRIPTIVE ETASQ
  /CRITERIA = ALPHA(.05)
  /DESIGN = naattph nattslf spolicy2 aware naattph*nattslf naattph*spolicy2 nattslf*spolicy2.

A J Baglioni jr
McIntire School of Commerce
University of Virginia
Rouss & Robertson Halls, East Lawn
P.O. Box 400173
Charlottesville, Va  22904-4173
434.924.4961
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Converting syntax to an equation

Rich Ulrich
In reply to this post by Baglioni, Tony
If you are asking what the "prediction equation" looks like, it
might be expressed most compactly in matrix terms, as suggested
by what David posted.  His equation seems to describe the whole problem.

But in more familiar terms, it would be written out somewhat like
two regression equations, with a terms for the levels of the factors
and their interactions on the right; and two Y variables on the left. 
With two degrees of freedom on the left and more on the right,
there will be at least two roots to the canonical correlation problem.

--
Rich Ulrich


Date: Wed, 5 Oct 2011 16:10:26 -0400
From: [hidden email]
Subject: Converting syntax to an equation
To: [hidden email]

All,

 

A colleague asked me what should be a simple question and I have no answer for him.  He has some basic manova syntax (below) and he would like to know what the equation from such a model would look like.  Excluding all of the marginal means, etc., can anyone answer that question for him?  Thanks very much.

 

Tony

 

GLM

perdelta costfairness BY naattph nattslf spolicy2 aware

  /CONTRAST (naattph)=Simple /CONTRAST (nattslf)=Simple /CONTRAST

  (spolicy2)=Simple

  /METHOD = SSTYPE(3)

  /INTERCEPT = INCLUDE

  /PLOT = PROFILE( spolicy2*naattph spolicy2*nattslf)

  /EMMEANS = TABLES(OVERALL)

  /EMMEANS = TABLES(naattph) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(spolicy2) COMPARE ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*nattslf) COMPARE (naattph) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*nattslf) COMPARE (nattslf) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (naattph) ADJ(BONFERRONI)

  /EMMEANS = TABLES(naattph*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (nattslf) ADJ(BONFERRONI)

  /EMMEANS = TABLES(nattslf*spolicy2) COMPARE (spolicy2) ADJ(BONFERRONI)

  /PRINT = DESCRIPTIVE ETASQ

  /CRITERIA = ALPHA(.05)

  /DESIGN = naattph nattslf spolicy2 aware naattph*nattslf naattph*spolicy2 nattslf*spolicy2.

 

A J Baglioni jr

McIntire School of Commerce

University of Virginia

Rouss & Robertson Halls, East Lawn

P.O. Box 400173

Charlottesville, Va  22904-4173

434.924.4961