Re: [R] Logistic regression with constrained parameter ??

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sun 28 Aug 2005 - 16:23:45 EST

On Sat, 27 Aug 2005, Benn Fine wrote:

> I want to fit a logistic regression model under a specified
> null hypothesis, say Ho:Beta_k=1
>
> Is there a way to constrain a parameter in glm.fit ??

You should be calling glm(). Then you can use offset() in your formula. (You can also use it as an argument, but please don't as it is only partially supported.)

> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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

PLEASE do (and notice what is says about HTML mail).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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
Received on Sun Aug 28 16:35:08 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 16:01:13 EST