A guide of which commands you should use in stata and where you should look, for the following methods:
multiple regression run.
logistic regression run.
multi-level regression.
factor analysis/ Principal components analysis.
So a guide for all the commands and assignments needed for the course 0...
Multiple regression run:
1. Take a look at the data
Also use summarize misstable, when a variable has to many missing data points you
should not use it in a regression run.
2. Run a simple regression with all predictor variables. (categorical i.var).
3. Assumptions:
No multi collinearity: pwcorr and vif
All relevant predictor variables included: ovtest, if p>0.05 then it is good, otherwise
you should look at transformations.
Homoscedasticity and linearity. estat imtest, white, if p>0.05 then heteroscedasticity.
use bootstrap or robust standard error:
o bootstrap, reps(500) : reg…
o reg … , robust
independent errors: Do you think that the data is clustered? You can find this by using
the command:
xtset var (the variable which you think has clustering)
xtreg target-variable
Look at the Rho, if it is reasonably high, there is clustering.
Noise should be distributed normally:
predict e, resid
sktest e
swilk e (p has to be >0.05)
not too many non-significant variables.
Diag2: it looks at the outlierness of cases. You need to look at the table at the bottom and if there are
cases with high outliersness leave these out the regression and look of this improves the model. Yes?
Look at why they could be outliers (check the data), if you have a reasonably answer leave them out,
otherwise leave them in.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Kp2022. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.21. You're not tied to anything after your purchase.