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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started