[R] Logistic regression with constrained parameter ??
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sun Aug 28 08:23:45 CEST 2005
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 at 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 at 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
More information about the R-help
mailing list