{smcl} {hline} {cmd:help: {helpb lmsrd}}{space 50} {cmd:dialog:} {bf:{dialog lmsrd}} {hline} {bf:{err:{dlgtab:Title}}} {bf: lmsrd: Spurious Regression Diagnostic} {bf:{err:{dlgtab:Syntax}}} {p 8 16 2} {opt lmsrd} {depvar} {indepvars} {ifin} {weight} , [ {opt nocons:tant} {opth vce(vcetype)} ]{p_end} {bf:{err:{dlgtab:Options}}} {synoptset 20 tabbed}{...} {synopt :{opt nocons:tant}}suppress constant term{p_end} {syntab:SE/Robust} {synopt :{opth vce(vcetype)}}{it:vcetype} may be {opt ols}, {opt r:obust}, {opt cl:uster} {it:clustvar}, {opt boot:strap}, {opt jack:knife}, {opt hc2}, or {opt hc3}{p_end} {bf:{err:{dlgtab:Description}}} {p 2 2 2}{cmd:lmsrd} computes Spurious Regression Diagnostic after {helpb regress} command.{p_end} {bf:{err:{dlgtab:Saved Results}}} {pstd} {cmd:lmadurh} saves the following in {cmd:r()}: {synoptset 12 tabbed}{...} {p2col 5 10 10 2: Scalars}{p_end} {synopt:{cmd:r(rho)}}Rho Value{p_end} {synopt:{cmd:r(dw)}}Durbin-Watson Test{p_end} {synopt:{cmd:r(r2)}}R-squared{p_end} {bf:{err:{dlgtab:References}}} {p 4 8 2}Damodar Gujarati (1995) {cmd: "Basic Econometrics"} {it:3rd Edition, McGraw Hill, New York, USA}; 724-726. {p 4 8 2}Maddala, G. (1992) {cmd: "Introduction to Econometrics",} {it:2nd ed., Macmillan Publishing Company, New York, USA}; 245. {bf:{err:{dlgtab:Examples}}} {stata clear all} {stata db lmsrd} {stata sysuse lmsrd.dta , clear} {stata lmsrd y x1 x2} {stata return list} ============================================================================== * Ordinary Least Squares (OLS) ============================================================================== Source | SS df MS Number of obs = 17 -------------+------------------------------ F( 2, 14) = 136.68 Model | 8460.93712 2 4230.46856 Prob > F = 0.0000 Residual | 433.313039 14 30.9509313 R-squared = 0.9513 -------------+------------------------------ Adj R-squared = 0.9443 Total | 8894.25016 16 555.890635 Root MSE = 5.5634 ------------------------------------------------------------------------------ y | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- x1 | 1.061709 .2666739 3.98 0.001 .4897506 1.633668 x2 | -1.382986 .0838143 -16.50 0.000 -1.562749 -1.203222 _cons | 130.7066 27.09429 4.82 0.000 72.59515 188.8181 ------------------------------------------------------------------------------ ============================================================================== * OLS Spurious Regression Diagnostic ============================================================================== Ho: No Spurious Regression: R2 < DW Ha: Spurious Regression: R2 > DW --------------------------------------------------------------------------- * Rho Value = -0.14548 * R-squared = 0.95128 * Durbin-Watson Test = 2.01855 df: (3 , 17) --------------------------------------------------------------------------- No Spurious Regression: R2 (0.9513) < DW (2.0185) {bf:{err:{dlgtab:Author}}} {hi:Emad Abd Elmessih Shehata} {hi:Assistant Professor} {hi:Agricultural Research Center - Agricultural Economics Research Institute - Egypt} {hi:Email: {browse "mailto:emadstat@hotmail.com":emadstat@hotmail.com}} {hi:WebPage:{col 27}{browse "http://emadstat.110mb.com/stata.htm"}} {hi:WebPage at IDEAS:{col 27}{browse "http://ideas.repec.org/f/psh494.html"}} {hi:WebPage at EconPapers:{col 27}{browse "http://econpapers.repec.org/RAS/psh494.htm"}} {bf:{err:{dlgtab:lmsrd Citation}}} {phang}{cmd:Shehata, Emad Abd Elmessih (2012)}{p_end} {phang}{cmd:LMSRD: "Spurious Regression Diagnostic"}{p_end} {psee} {p_end}