pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP Regression with /noorigin


From: martin cohen
Subject: Re: PSPP Regression with /noorigin
Date: Sat, 29 Apr 2017 16:35:42 +0000 (UTC)

If it is a simple y vs. x regression through the origin, the slope is easily shown to be

sum(xy)/sum(x^2).
 
Marty Cohen
address@hidden



From: "address@hidden" <address@hidden>
To: address@hidden
Sent: Saturday, April 29, 2017 9:04 AM
Subject: Pspp-users Digest, Vol 131, Issue 11

Send Pspp-users mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pspp-users digest..."


Today's Topics:

  1. Re: PSPP Regression with /noorigin (John Darrington)


----------------------------------------------------------------------

Message: 1
Date: Fri, 28 Apr 2017 18:22:30 +0200
From: John Darrington <address@hidden>
To: Hulliger Beat <address@hidden>
Subject: Re: PSPP Regression with /noorigin
Message-ID: <address@hidden>
Content-Type: text/plain; charset="us-ascii"

On Tue, Apr 25, 2017 at 07:39:45AM +0000, Hulliger Beat wrote:
   
    Last week a student asked me whether he should eliminate the intercept in a simple linear regression when it is not significantly different from 0. Yes, I said: It is very simple to remove it in PSPP. How wrong was I! There is no option /NOORIGIN in the PSPP Regression procedure.
   
    I have seen the discussions about this issue and the corresponding proposals. I tried GLM but no coefficients are output. I tried with dummies but a bit of algebra convinced me that this does not work.  I thought the simplest thing is to delete the column of ones in the design matrix. I have downloaded the code and looked into linreg.c. Of course, things are a bit more complicated than it seems at first. Say, my knowledge of C is not enough to venture into the code.
   
Unfortunately the author who contributed the regression code is no longer active in PSPP.

What happens when you try removing the ones column?  Does it do anything reasonable?

J'


--
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature

------------------------------

Subject: Digest Footer

_______________________________________________
Pspp-users mailing list


------------------------------

End of Pspp-users Digest, Vol 131, Issue 11
*******************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]