![]() ![]() Which predictors appear to have a statistically significant relationship to the response? Be sure to explain your reasoning and quantify the relationship(s). Is there a relationship between at least one predictor and the response? Be sure to explain your reasoning. Use lm() to create a linear fit of median house price against all the other features. Do its entries confirm your assumptions from the scatterplot matrix? Are there any other pairs of features with significant correlations? Which predictors appear to be most highly correlated with the response? Which predictors appear to be most highly correlated with each other? Is there any visual evidence of outliers? ![]() The descriptive text you edited out above contains information about which feature is which, so assign descriptive names to the columns using that information after reading it into R.Ĭreate the scatterplot matrix for the dataset. If you don't, R will likely treat some of the spaces as missing data. The easiest way to read it in is to set the option to strip whitespace to TRUE. It's just one instance per row separated only by spaces. Include all your responses to any questions asked below as comments in your R script. Save this edited file as houses.dat and make sure it's in the same folder as your R code in R Studioįor this dataset, use multiple linear regression to answer the following questions or create the requested graphics. If it's notepad or wordpad on Windows, you should reconsider your favorite!) and remove all the descriptive information so that the first line of the file will be the first line of data. If one of those is not your favorite, let me know which one is. Open it in your favorite text editor (Notepad++, Sublime Text, VS Code, are three good ones. Download the dataset from StatlibLinks to an external site. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |