[R] constraining betas with mlogit package

Bert Gunter gunter.berton at gene.com
Tue Aug 16 00:53:01 CEST 2011


I don't know the answer in general, but for the specific constraint of
two coefficients being the same, I would assume that you should create
a new covariate which is the sum of the two individual ones and fit
this single combined covariate instead of the two separate ones.

Cheers,
Bert

On Mon, Aug 15, 2011 at 2:20 PM, Essers, Jonah
<Jonah.Essers at childrens.harvard.edu> wrote:
> I have been using the mlogit package but can't seem to figure out how to make constraints on the beta coefficients.
> For example, I would like to force that two of my beta's are equal to each other.
>
> Thanks in advance.
>
> Jonah
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
"Men by nature long to get on to the ultimate truths, and will often
be impatient with elementary studies or fight shy of them. If it were
possible to reach the ultimate truths without the elementary studies
usually prefixed to them, these would not be preparatory studies but
superfluous diversions."

-- Maimonides (1135-1204)

Bert Gunter
Genentech Nonclinical Biostatistics



More information about the R-help mailing list