Skip to content
Back to formatted view

Raw Message

Message-ID: <x23cauafdt.fsf@biostat.ku.dk>
Date: 2004-01-05T09:55:42Z
From: Peter Dalgaard
Subject: r: lm question
In-Reply-To: <3FF92EBF.59C35255@stats.uct.ac.za>

allan clark <allan at stats.uct.ac.za> writes:

> Hi all
> 
> this is a silly question since i should know the answer.
> 
> lm(y~x) perfroms linear regression with the intercept included.
> 
> How  do i estimate the equation without the intercept?

y ~ x - 1 (or y ~ x + 0)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907