Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will create a pdf file for your answers using R quarto markdown. The due date for the project is 5 / 5 / 2
You will create a pdf file for your answers using R quarto markdown. The due date for the project is :PM Submit the pdf file on Blackboard before the due date.
Open RStudio and open a new Quarto Document. For the title, use last namefirstnamesectionnumberCPSPROJECT in capital letters. It should be something like this, DOEJOHNCPSPROJECT. The, click Create.
In the preamble section, insert Author and Date information. You can also provide a Subtitle. All of this information must be in quotation marks. It should look something like this.
Figure : preamble
Highlight and delete the body of the document, starting from Quarto section all the way to the end.
Click on Render in the menu. R will ask you to save the file, choose PROJECT folder, and for the file name use DOEJOHNCPSPROJECT. Click on Save. Then, DOEJOHNCPSPROJECT.qmd file will be processed and you should see the html version in Viewer.
Create a section heading and name it as CPSDATAEXERCISE.
Insert an R code chunk and import the data set CPSDATA.csv You can use read.csv to import. Name the container data frame as CPSDATA. Take a look at the column names and data types. Make sure that numeric columns are numeric.
Figure : body
SEX is coded as for Males and for Females. Generate a new integer column in CPSDATA named FEMALE which is an indicator for Females.
RACE take several values raging from to The value stands for White and stands for missing. Generate a new integer column in CPSDATA named NONWHITE which is an indicator for Nonwhites.
MARST take values from to Value indicates married and spouse being present. Value stand for missing. Generate a new integer column in CPSDATA named MARRIED which is an indicator for married and spouse being present.
EDUC take values from to Value indicates no schooling. Value stand for Doctorate degree. Missing is coded as Generate a new integer column in CPSDATA named HIGHSCHOOL which is an indicator for at least High school graduates.
INCWAGE is a continuous variable which indicates each respondents total pretax wage and salary income. Missing is coded as or Replace these values for missing to NA
Region variable takes values starting from to Replace and with ; and with ; and with ; and with
Drop SEX, RACE, MARST and EDUC from CPSDATA.
Create a table of descriptive statistics for INCWAGE, FEMALE, NONWHITE, MAR RIED, HIGHSCHOOL and REGION.
Calculate the fraction of observations with zero value in INCWAGE. Add to the zero values under INCWAGE.
Estimate the following model and obtain heteroskedasticity robust standard errors. logINCWAGEbeta beta FEMALE beta NONWHITE beta MARRIED
beta HIGHSCHOOL u
Estimate the following model and obtain heteroskedasticity robust standard errors.
logINCWAGEbeta beta FEMALE beta NONWHITE beta FEMALE times NONWHITE beta MARRIED beta HIGHSCHOOL u
Estimate the following model and obtain heteroskedasticity robust standard errors. logINCWAGEbeta beta FEMALE beta NONWHITE beta FEMALE times NONWHITE
beta MARRIED beta HIGHSCHOOL R R R u
where R R and R are dummies for regions and
Explain the purpose including these region dummies. Explain why the first region is excluded.
Present your results in a table with columns. Interpret the coefficient estimates for beta beta and beta in column
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