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: Spanning Analysis - Test

From   Scott Merryman <>
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-


On Thu, Jul 12, 2012 at 11:51 AM, David Ashcraft
<> 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:

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