Reference no: EM131289671
Regression Exercise
Introduction
We've reached a stage in NCG602A where we can start to put some of our knowledge and R skills together in some practical form. You will need to do some searching on the Web for more detailed information about some of the R functions you will use. There will be some in class preliminary discussion of the exercise.
General approach
The object of the exercise will be to create a model which predicts the variation in educational attainment among the counties of Georgia. This will require some initial exploration of the data: useful techniques will include numerical summaries as well as visual tools (which may even include maps).
Consider the spatial structure of the data too. You might find it helpful to explore the correlation structure of the data to decide which variables to put in your model. You'll need to examine the spatial structure of the residuals from the model, and comment on any patterns you observe.
Notes and suggestions
1. The data for Georgia are in the GWmodel. Use the data() function to load them and library() to load GWmodel. ls() will tell you what the data frames are called. names() will list the column headings.
2. Remember to merge the data frames before you can plot them - remember about the order of the data frames... match() will be useful.
3. hist(), summary(), boxplot() and plot() may be useful exploratory tools.
4. cor() will give you a correlation matrix, and cor.test() will carry out a test to determine whether any correlations are likely to be zero.
5. You'll need the RColorBrewer and classInt libraries when you're plotting a map {don't use spplot()}. You might need to write a function to plot maps.
6. the lm() function will fit a regression model. Use PctBach as the dependent variable, and PctEld, PctFB, PctPov and PctBlack as possible predictors.
7. Examine the unadjusted r-squared - start with one independent variable, and create several models with additional variables. What happens to the r-squared when you add a new variable? AIC() might be useful here too.
8. Interpret the coefficient estimates - which ones are significant in the model?
9. Do the residuals exhibit significant spatial autocorrelation? Useful to map the residuals? What do the residuals tell us? In which counties are the predictions worst (standardised residuals might be useful here) - and why might this be? You'll find the county names in the spatial polygons data frame. I found Wikipedia quite helpful as a start.
10. Write up your results with appropriate maps, and submit them to Moodle for NCG602A.
11. I have no problems with you working as a team, as long as the write ups are individual.
Derive the differential equation for the downward motion
: Using a control-volume analysis of mass and vertical momentum, derive the differential equation for the downward motion v(t) of the liquid. Assume one-dimensional, incompressible, frictionless flow.
|
Frame discussion in terms of factor related to communication
: Discussion Question: After reading the article and the report, discuss the pros and cons of reducing expenditures in criminal corrections and diverting the corrections' funds to early childhood education programs. Frame your discussion in terms of..
|
Meetings-conventions and expositions
: For sales professionals, familiarization (FAM) trips are very important to closing the sale with a meeting, convention, or exposition organizer. Determine five key strategies a sales manager would need to show a meeting, convention, or exposition ..
|
Is the content up to date and relevant
: Choose a local business and evaluate its effectiveness in creating customer engagement. Is the content up to date and relevant? How does it manage its content?
|
Create a model which predicts the variation in educational
: Create a model which predicts the variation in educational attainment among the counties of Georgia. This will require some initial exploration of the data: useful techniques will include numerical summaries as well as visual tools (which may even..
|
Brainstorm three new game console features
: Debate whether these new features in game consoles are enough to survive against the growth of smartphone and tablet apps that offer free or inexpensive games.
|
Find the force of the fluid on the plate
: A plate moves perpendicularly toward a discharging jet at the rate of 5 fps. The jet discharges water at the rate of 3 ft3 /s and a speed of 30 fps. Find the force of the fluid on the plate and compare it with what it would be if the plate were st..
|
A company embracing the societal marketing concept
: Should marketers embrace the societal marketing concept with respect to foods or products that could be harmful to consumers?
|
Name two government policy actions
: Name two government policy actions which caused, or made worse, the Great Depression; and one that caused, or made worse, the Great Recession. (You can be brief)
|