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 ?? Thanks in advance! --------------------------------- [[alternative HTML version deleted]]
Prof Brian Ripley
2005-Aug-28 06:23 UTC
[R] Logistic regression with constrained parameter ??
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.htmlPLEASE 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