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 relat
linear regression using Stata.Dohoo, Martin, and Stryhn(2012,2010) discuss linear regression using examples from epidemiology, and Stata datasets and do-files used in the text are available.Cameron and Trivedi(2010) discuss linear regression using econometric examples with Stata.Mitchell(2021)
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}