Bookmark and Share

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


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

Re: st: Spanning Analysis - Test


From   Scott Merryman <[email protected]>
To   [email protected]
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
<[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index