Second part:  you want to look at the residuals after specifying a  
model?  Just use the dependent variables in your subsample as the  
dependent variables in your regression equation and subtract that  
from your outcome variable in  your  subsample.  Might not be the  
answer to the question you're asking though.

Jeff.
-- 
Jeffrey R. Spies
http://www.nd.edu/~jspies/


On Nov 13, 2006, at 7:00 PM, Leeds, Mark (IED) wrote:

> you can just subtract 4.3 from the independent variable and then do
> through zero. That will
> Give you a force through 4.3. I don't undersarand the second part of
> your statement.
>
>
>
> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Heather Maughan
> Sent: Monday, November 13, 2006 6:31 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Forcing the intercept
>
> Dear R-users:
>
> I am doing multiple regressions using the "lm" function and would like
> to force the intercept to be equal to a specific value (such as  
> 4.3).  I
> was able to find out how to force it through the origin but this does
> not work for other values.
>
> I am also interested in forcing the regression parameters obtained  
> from
> one regression in another regression with a subset of the data.
>
> Are either of these possible in R?  I have been searching the help  
> guide
> for hours and have been unsuccessful.
>
> Many thanks,
> Heather
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> --------------------------------------------------------
>
> This is not an offer (or solicitation of an offer) to buy/se... 
> {{dropped}}
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting- 
> guide.html
> and provide commented, minimal, self-contained, reproducible code.


	[[alternative HTML version deleted]]

