X hits on this document

# click on “Load Preferences”; (4) click on “Factory Settings.” If the ... - page 10 / 44

455 views

0 shares

10 / 44

approximate the dissimilarities between pairs of objects. (adapted from William Jacoby and David Armstrong, “Multidimensional Scaling 1”, used at the Measurement, Scaling and Dimensional Analysis short course at the 2011 ICPSR Summer Program – available from William Jacoby’s website).  The following  command generates the mds default estimation:

mds  a3a-a3o, id(partic)

Note: you need to specify an “id” – the name of the variable that gives the observation number.  In the command line above, the variable “partic” gives the number assigned to each participant in the study.

View Scores on a Variable: list (then click on variable names and press “enter”)

Graphs/Plots: run a regression prior to each step below.

to graph residuals by predicted values: rvfplot

graph residuals by an ind. variable cons: rvpplot cons

plot cons by tax type: plot cons tax

leverage vs. residual sq. plot: lvr2plot

added variable plots (useful for uncovering observations exerting disproportionate influence): avplots

box plots: graph box cons party tax (shows median, 25th, 75th percentile)

histogram of cons: graph twoway histogram cons

scatter plot of tax (on y axis) and cons type: scatter tax cons

### >>> to get a graph of variables restax and rescon with both dots and

a regression line type:

graph twoway lfit restax rescons || scatter restax rescons

### Residuals and Predicted Values

1. run main equation: fit tax cons party stinc

(I believe you can replace “fit” with regres, logit, probit, etc. – “fit” is just for regression – I don’t think “fit” works with logit, etc.)

2. predict yhat

3. gen res=tax-yhat

4. list tax yhat res

# deleting variables that are less significant than the selected threshold. For example: stepswise, pr(.2) hierarchical: regress tax cons party stinc

would mean Stata would estimate the model with all three independent variables and then re-estimate excluding any independent variable that was not significant at the .20 level. Can use with probit, logit, etc.

# Regression Diagnostics: Run a regression with regress.  Now in the command

 Document views 455 Page views 519 Page last viewed Fri Jan 20 20:22:38 UTC 2017 Pages 44 Paragraphs 843 Words 17107