Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 . What are the four assumptions required in order for ordinary least squares to be unbiased? 6 . Now we would like to use

5. What are the four assumptions required in order for ordinary least squares to be unbiased?
6.Now we would like to use data to run the house price regression. Download the excel document called hprice1.xls from D2L. Open R, create a new script and paste the following into the window (make sure the packages are installed):
#######################################
# Install and load the tidyverse package
install.packages("tidyverse")
install.packages("readxl")
install.packages("ggplot2")
library(tidyverse)
library(readxl)
library(ggplot2)
# Read the excel file
data <- read_excel("C:/ hprice1.xls")
# Run simple regression
model <- lm(data$price ~ data$bdrms)
# Summarize the model
summary(model)
##################################################
Be sure to change the file path to wherever you put the data on your computer. Now highlight all of the code and hit the run line or selection button. Paste the result from the summary below.
7.What is the value for 1? How should we interpret this value?
8.What is the value for R2? How should we interpret this value?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Be prepared to address excessive absenteeism

Answered: 1 week ago