[R] constrained OLS on coefficient

Thomas W Blackwell tblackw at umich.edu
Wed Oct 29 20:19:03 CET 2003


Use  lm() or glm()  with argument 'offset' set to
the value of the column whose coefficient must be 1.
See  help("lm").

-  tom blackwell  -  u michigan medical school  -  ann arbor  -

On Wed, 29 Oct 2003, umeno wrote:

> Hi,
>
> I would like to know if anyone has any idea of how to run an OLS with
> constraints? I need to contraint a coefficient estimate in the model equal to
> 1, and I am not sure how to include it into the OLS estimation...
>
> I was hoping to find something like "cnsreg" in STATA..
>
> thank you
> Soyoko
>
> ______________________________________
> Ms. Soyoko Umeno
> Graduate Research Assitant for the Illinois-Missouri Biotechnology Alliance (IMBA) at http://www.imba.missouri.edu/
> Ph.D. Student at the Department of Agricultural and Consumer Economics
> at the University of Illinois at Urbana-Champaign
> Office Phone: 217-333-3417 or 217-333-0364
> Fax: 217-244-4817
> Mailing Address: 1301 W. Gregory Dr. MC710, Urbana, IL 61801
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>




More information about the R-help mailing list