Page 343, table 13.1 Regression of estimated 1980 U.S. census undercount of area characteristics, for 66 central cities, state remainders, and states. NOTE: Stata lists the variables in descending order…
Read More
Search Results for: stata
Applied Regression Analysis by John Fox Chapter 14 Extending Linear Least Squares | Stata Textbook Examples
Figure 14.3 on page 380 using data file hartnagl. We use the in option with the use command to omit the first five observations with missing values. use https://stats.idre.ucla.edu/stat/stata/examples/ara/hartnagl in…
Read More
Applied Regression Analysis by John Fox Chapter 15: Beyond Linear Least Squares | Stata Textbook Examples
Figure 15.1 on page 440 on the data file chile. use https://stats.idre.ucla.edu/stat/stata/examples/ara/chile, clear gen voting=1 if (intvote==1) replace voting = 0 if (intvote==2) logistic voting statquo predict pred, p graph…
Read More
Applied Regression Analysis by John Fox Chapter 16: Assessing Sampling Variation: Bootstrapping and Cross-Validation | Stata Textbook Examples
The first example is of income of four married couples from table 16.1. First we create a data set of four variables with 256 observations of table 16.2 using the…
Read More
Applied Regression Analysis by John Fox Chapter 2: What is Regression Analysis | Stata Textbook Examples
This page shows how to obtain the results of Fox’s Chapter 2 using Stata. Some of the graphs look somewhat different than those shown in Fox. In some cases, the…
Read More
Applied Regression Analysis by John Fox Chapter 3: Examining Data | Stata Textbook Examples
Page 34, figure 3.1. use https://stats.idre.ucla.edu/stat/stata/examples/ara/quartet, clear graph twoway (scatter y1 x1) (lfit y1 x1), xlabel(0(5)20) ylabel(0(5)15) graph twoway (scatter y2 x2) (lfit y2 x2), xlabel(0(5)20) ylabel(0(5)15) graph twoway (scatter…
Read More
Applied Regression Analysis by John Fox Chapter 4: Transforming Data | Stata Textbook Examples
Page 65, figure 4.2 This figure shows an example of a kernel density estimator (and is the same as page 41, figure 3.5, using the kdensity command. The width(800) option…
Read More
Applied Regression Analysis by Fox Chapter 5: Linear Least Squares Regression | Stata Textbook Examples
The following shows how to get the graph shown in figure 5.1, page 86. First, we use the davis file and keep just women. use https://stats.idre.ucla.edu/stat/stata/examples/ara/davis if female == 1,…
Read More
Applied Regression Analysis by John Fox Chapter 6: Statistical Inference for Regression | Stata Textbook Examples
The bottom of page 117 and top of page 118 illustrates how you can get standard errors for a and b and form confidence intervals for a and b. First,…
Read More
Applied Regression Analysis by John Fox Chapter 7: Dummy-Variable Regression | Stata Textbook Examples
Calculation from page 142 to page 143 based on data file duncan. use https://stats.idre.ucla.edu/stat/stata/examples/ara/duncan, clear (From Fox, Applied Regression Analysis. Use ‘notes’ command for source of data) regress prestige educ…
Read More
