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 constanttssconscompute total sum of squares with constant; seldom usedSE/Robustvce(vcety)
depname(varname) is used only in programs and ado-files that use regress to fit models other than linear regression. depname() may be specified only at estimation time. varname is recorded as the identity of the dependent variable, even though …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}