Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Richard Williams <richardwilliams.ndu@gmail.com> |

To |
statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu |

Subject |
Re: st: How to constraint the sum of the coefficients to zero for a factor variable. |

Date |
Fri, 05 Aug 2011 10:41:21 -0500 |

At 07:19 AM 8/5/2011, Maarten Buis wrote:

On Fri, Aug 5, 2011 at 1:28 PM, Sam Brilleman wrote:> Does anyone know how to change the constraint on the coefficientsfor 'var4'> so that the sum of the coefficients is zero (i.e. sum(b4i) = 0) rather than > treating one of the factor levels as a reference category (i.e. b4i = 0 for > some given i). Note that the latter is the standard parameter constraint > used by STATA's estimation commands. I don't know of a way to do this in Stata's factor variable notation. You can however create the necesary variables using -xi3-, where they are called "effect coding", see -findit xi3-. Hope this helps, Maarten

------------------------------------------- Richard Williams, Notre Dame Dept of Sociology OFFICE: (574)631-6668, (574)631-6463 HOME: (574)289-5227 EMAIL: Richard.A.Williams.5@ND.Edu WWW: http://www.nd.edu/~rwilliam * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: How to constraint the sum of the coefficients to zero for a factor variable.***From:*Maarten Buis <maartenlbuis@gmail.com>

**References**:**st: How to constraint the sum of the coefficients to zero for a factor variable.***From:*Sam Brilleman <sam.brilleman@bristol.ac.uk>

**Re: st: How to constraint the sum of the coefficients to zero for a factor variable.***From:*Maarten Buis <maartenlbuis@gmail.com>

- Prev by Date:
**Re: st: first differences and growth rates** - Next by Date:
**st: Predicting survival at some specific times** - Previous by thread:
**Re: st: How to constraint the sum of the coefficients to zero for a factor variable.** - Next by thread:
**Re: st: How to constraint the sum of the coefficients to zero for a factor variable.** - Index(es):