Bookmark and Share

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, is already up and running.

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

Re: st: - xtlogit- and predictnl and -xtreg-

From   Maarten Buis <>
Subject   Re: st: - xtlogit- and predictnl and -xtreg-
Date   Thu, 18 Aug 2011 13:42:06 +0200

On Thu, Aug 18, 2011 at 1:04 PM, Ricardo Ovaldia wrote:
> Is there a way to also get the -margin- to do a test of these means? Or is there another way to do that.
> For example:
> margins  if group==3,   over(year)
> and the test if these means for group=3 are the same across years.

*----------------- begin example ----------------
sysuse nlsw88, clear
reg wage union i.collgrad##i.age ttl_exp
margins, over(age) post
test 34bn.age= 35.age = 36.age = 37.age // etc.
*--------------- end example ----------------
(For more on examples I sent to the Statalist see: )

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index