Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: Testing interaction terms / mutually exclusive variables

From   Verena Dill <>
Subject   Re: st: Testing interaction terms / mutually exclusive variables
Date   Fri, 21 Jun 2013 14:46:50 +0200

thank you so much; I think -lincom- is what I need!


Am 21.06.2013 03:49, schrieb David Hoaglin:

When I reread your previous message, I interpreted it as saying that
you have the equivalent of a categorical variable, sector, with three
categories: service sector, manufacturing sector, and other sectors.
And the "other" sector serves as the reference category.  If my
interpretation is correct, -lincom- (after the -regress- command) will
do what you need:
lincom var1 - var2

In calculating the standard error of b[var1] - b[var2], -lincom- will
use the variances and covariance of b[var1] and b[var2].  As I
mentioned earlier, that covariance takes into account that var1 and
var2 are mutually exclusive.

It is usually easier to answer questions when we can see the whole
picture (e.g., the entire regression model).

David Hoaglin

On Thu, Jun 20, 2013 at 1:01 PM, Verena Dill<>  wrote:
I want to test whether or not the coeffients are the same
(_b[var1]=_b[bar2]) and take into account that they are mutually exclusive.

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index