Stata Commands

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the command for a scatter plot?

scatter dv iv

What command is used for a simple linear regression using 1 independent variable?

regress dv iv

What command would create a centred variable?

generate variable_1 = variable-mean

Command for a numerical description of a numerical variable

<p>summarize variable</p> Signup and view all the answers

Where do you find the standard deviation of the expected y distribution?

<p>Root MSE</p> Signup and view all the answers

After regression, what is the command used to generate residuals?

<p>predict res, residuals</p> Signup and view all the answers

What 4 commands help check the homoscedasticity and normality of residuals?

<p>scatter res fitted rvfplot pnorm res swilk res</p> Signup and view all the answers

What command generates standardised coefficients alongside the regression output?

<p>regress dv iv, beta</p> Signup and view all the answers

What is the command for multiple regression involving 2 numerical independent variables?

<p>regress dv iv1 iv2</p> Signup and view all the answers

What is the histogram command?

<p>histogram iv, normal bin(15) frequency</p> Signup and view all the answers

What command gives significant correlation?

<p>pwcorr dv iv, sig</p> Signup and view all the answers

The Global F-test of the above regression model shows that:

<p>The model is statistically significant with a large effect size</p> Signup and view all the answers

Are the unique effects of independent variables in the above regression output statistically significant?

<p>Yes</p> Signup and view all the answers

When encountering a dichotomous variable, what command helps see which ones are coded '0' and those coded '1'?

<p>list iv</p> Signup and view all the answers

What command helps summarize the dependent variable across levels of an iv?

<p>tabstat dv, by(iv) stat(n mean sd min max skew kurt)</p> Signup and view all the answers

What command helps visually compare dv results across levels of the IV?

<p>ciplot dv, by(cativ)</p> Signup and view all the answers

What is the command for a regression using a dichotomous variable?

<p>regress dv cativ</p> Signup and view all the answers

What is the command for regression using a categorical independent variable involving more than 2 level?

<p>regress dv i.cativ, baselevels</p> Signup and view all the answers

What command tells you the dummy codes of a categorical variable?

<p>labellist cativ</p> Signup and view all the answers

What command allows you to do pairwise comparisons after a categorical iv regression?

<p>pwcompare cativ, effect mcompare(bonferroni)</p> Signup and view all the answers

Flashcards

Capital of France (example flashcard)

Paris

More Like This

Use Quizgecko on...
Browser
Browser