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


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

Re: st: Spanning Analysis - Test


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Spanning Analysis - Test
Date   Fri, 13 Jul 2012 06:36:02 -0500

sysuse auto
reg gear mpg
test (_cons = 0) (mpg =1)

Or use -test, accumulate-

Scott

On Thu, Jul 12, 2012 at 11:51 AM, David Ashcraft
<ashcraftd@rocketmail.com> wrote:
> I am running an OLS regression: Y=a + bx
> I want to test whether coefficients of OLS regression are a=0 and b=1. I have read through test command. I can do test if a=1 and b=1 or a=b but I can not figure out, how I can test this condition i.e. a=0 and b=1.
> Any help will be appreciated.
> Regards
>
> David
>
*
*   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/


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