Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Listing coefficient of one variable


From   Adrian Mander <[email protected]>
To   [email protected]
Subject   Re: st: Listing coefficient of one variable
Date   Tue, 13 Sep 2005 14:11:53 +0100

Perhaps you should consider an interaction term with 100 levels if you
truly believe the data is telling you this story.

Otherwise try a forvalues loop

cheers
Ade


At 14:02 13/09/2005, you wrote:
Dear all,
Suppose we run a regression model as follows
reg y a b c
and want to know how coefficient of "c" varies according to "d",
how can I write a program?

Note: "d" is integer between 1 and 100 and does not appear in the model and we
do not want to write 100 programs such as
reg y a b c if d==1.

Thanks in advance.
--
FUKUGAWA Nobuya, Ph.D.
[email protected]
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index