How many variables are in the dataset?

Run chapter 2 codes on the WestRoxbury dataset. With that knowledge and experience create a new dataframe called realestate.df  and answer the following questions.  Your output should be screenshots pasted into a document when necessary. (50 points)

Data Pre-exploration (5 Points)

Load dataset in R studio and answer the following:

  1. How many variables are in the dataset?
  2. How many observations are in the dataset?
  3. Print list of variables to the screen? (p27)

Run code to show the following.

  1. Find the dimension of the data frame.
  2. Show the first six rows
  3. Show the first six rows of the first column
  4. Show the first ten rows of each column
  5. Show the tenth row of columns 1 to 3, column 6, column 9 to 10.
  6. Show the sixth row of the first 3 columns
  7. Find summary statistics of each column.

Sampling (5 Points)

Run code to sample 50 observations from the realestate.df

Categorical variables (10 points)

Use the installed dummies package and dummies library to convert all categorical variables to dummy or binary values.

Show the first ten rows of the 11th to 14th columns.

Data partition (10 points)

Partition realestate.df into training data (60%) and validation data (40%). Use set.seed(5) to get the same partitions.

Regression model (20 points)

Fit regression model to training data. Use variable Total_Value as response and all the other variables as predictors.

What are the values of the model evaluation metrics?

Problems (starting at pg 49)  

Problem 2.1 (10 points)

Problem 2.2 (10 points)

Problem 2.5 (15 points)

Problem 2.10 (15points)

 

 

 

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!