Question: We have a data set named pp123 with the following variables, highestgradecompleted, earn, age, and agesquared. Draft an R script with the following specifications (we
We have a data set named "pp123" with the following variables, "highestgradecompleted", "earn," "age", and "agesquared."
Draft an R script with the following specifications (we aren't given the data file)
Regressing "earn" on "highestgradecompleted," "age," and "agesquared" such that it evaluates whether highestgradecompleted" has a discrete effect at particular thresholds: having 12 years of schooling ("highestgradecompleted" values equaling 12); having less than 12 ("highestgradecompleted" values < 12); and having more than 12 years of schooling ("highestgradecompleted" values > 12)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
