Date: Thu, 24 Oct 2002 14:25:39 -0400
Reply-To: David Greenberg <dg4@nyu.edu>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: David Greenberg <dg4@nyu.edu>
Subject: Re: regression models
Content-Type: text/plain; charset=windows-1252
Merge the two data stes. Crete a dummy variable that is 0 for those in the first data set, and 1 for those in the second. Regress y on x, the dummy variable, and the product of the dummy with x. Significance tests for the dummy and for the interaction term will answer the question for whether a is significantly different from c, and whether b is significantly different from d. David Greenberg, Sociology Department, New York University.
----- Original Message -----
From: "kalanda@liverpool.ac.uk" <bkalanda@yahoo.com>
Date: Thursday, October 24, 2002 4:38 am
Subject: regression models
> Dear all,
> I have two regression models:
> y= a + bx
> y= c+ dx
> How do i test the hypotheses that
> a is equal to c AND
> b is equal to d
> I would like to do that either through code or menus.
>
> Boniface Kalanda
> Liverpool School of Tropical Medicine
>
>
> Raynald Levesque <rlevesque@videotron.ca> wrote:Hi
>
> Is this what you are looking for?
>
>
> DATA LIST LIST /persnr Spellnr spelltyp.
> BEGIN DATA
> 101 1 4
> 101 2 3
> 101 3 1
> 102 1 4
> 102 2 1
> 102 3 3
> 102 4 1
> 103 1 4
> 103 2 1
> END DATA.
> LIST.
>
> SORT CASES BY persnr spellnr.
> COMPUTE spell3=(spelltyp=3).
>
> DO IF $CASENUM=1.
> - COMPUTE flag=spell3.
> ELSE IF persnr=LAG(persnr).
> - COMPUTE flag= MAX(LAG(flag),spell3).
> END IF.
> EXECUTE.
> SELECT IF flag=1.
>
> Raynald Levesque rlevesque@videotron.ca
> Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm
>
>
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On
> Behalf Of
> Andrea Schaefer
> Sent: October 23, 2002 1:02 PM
> To: SPSSX-L@LISTSERV.UGA.EDU
> Subject: Questions about setting up a data set
>
>
> Hi everyone!
>
> I have a questions regarding the shape of my data set.
> I have a data file which contains serveral spells per person. It looks
> like that:
>
> persnr Spellnr spelltyp
>
> 101 1 4
> 101 2 3
> 101 3 1
> 102 1 4
> 102 2 1
> 102 3 3
> 102 4 1
> 103 1 4
> 103 2 1
>
>
> Now my question: I like to extract all the persons how experienced at
> least one spell of spelltyp 3 and I want to keep the following
> spell(typ)-(after spelltyp 3).
>
> Thank you in advance. I greatly appreciate any advice!
>
> Andrea Schäfer
>
>
> ---------------------------------
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
>
|