Transcription of Title stata.com regress — Linear regression
{{id}} {{{paragraph}}}
Linear regressionDescriptionQuick startMenuSyntaxOptionsRemarks and examplesStored resultsMethods and formulasAcknowledgmentsReferencesAlso seeDescriptionregressperforms ordinary least-squares Linear also perform weightedestimation, compute robust and cluster robust standard errors, and adjust results for complex startSimple Linear regression ofyonx1regress y x1 regression ofyonx1,x2, and indicators for categorical variablearegress y x1 x2 the interaction between continuous variablex2andaregress y x1 ## model for observations wherev1is greater than zeroregress y x1 x2 if v1>0 With cluster robust standard errors for clustering by levels ofcvarregress y x1 x2 , vce(cluster cvar)With bootstrap standard errorsregress y x1 x2 , vce(bootstrap)Report standardized coefficientsregress y x1 x2 , betaAdjust for complex survey design usingsvysetdatasvy: regress y x1 x2 sampling weightwvarregress y x1 x2 [pweight=wvar]MenuStatistics> Linear models and related> Linear regression12 regress Linear regressionSyntaxregressdepvar[indepvars] [if] [in] [weight] [,options]optionsDescriptionModelnoconst antsuppress constant termhasconshas user-supplied constanttssco
regress performs ordinary least-squares linear regression. regress can also perform weighted estimation, compute robust and cluster–robust standard errors, and adjust results for complex survey designs. Quick start Simple linear regression of y on x1 regress y x1 Regression of y on x1, x2, and indicators for categorical variable a regress y ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}