library(wooldridge)
data <- wooldridge::econmath
head(data,5)
## age work study econhs colgpa hsgpa acteng actmth act mathscr male calculus
## 1 23 15 10.0 0 3.4909 3.355 24 26 27 10 1 1
## 2 23 0 22.5 1 2.1000 3.219 23 20 24 9 1 0
## 3 21 25 12.0 0 3.0851 3.306 21 24 21 8 1 1
## 4 22 30 40.0 0 2.6805 3.977 31 28 31 10 0 1
## 5 22 25 15.0 1 3.7454 3.890 28 31 32 8 1 1
## attexc attgood fathcoll mothcoll score
## 1 0 0 1 1 84.43
## 2 0 0 0 1 57.38
## 3 1 0 0 1 66.39
## 4 0 1 1 1 81.15
## 5 0 1 0 1 95.90
i. Logically, what are the smallest and largest values that can be
taken on by the variable score? What are the smallest and largest values
in the sample? ANSWER: Logically, the smallest and the largest values of
score wouldbe min=0 and max=100. From the sample max and the min scores
are:
max(data$score)
## [1] 98.44
min(data$score)
## [1] 19.53
iii. Estimate the model from part (ii) and obtain the statistic and
associated p-value for testing Ho: B3 = 0. How would you defend your
findings to someone who makes the following statement: “You cannot trust
that p-value because clearly the error term in the equation cannot have
a normal distribution.” ANSWER:Although the assumption of normality for
the error term is important for certain statistical tests, violating
this assumption does not necessarily invalidate the p-value. The p-value
is calculated based on the assumptions made in the model and the
available data.