Question: Open up an R-script and copy and paste (or type) the following code library(tidyverse) library(wooldridge) library(AER) df

Open up an R-script and copy and paste (or type) the following code

library(tidyverse)

library(wooldridge)

library(AER)

df <- wooldridge::affairs

What is the difference in the average number of affairs between means between men and women when males are the treatment group?

What is the p-value of the test that there are no differences between mean and women?

What is the p-value of the 2-sided test that Upper H 0 : Upper Y 1 overbar minus Upper Y overbar 0 equals. 1?

Use the sandwich standard error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!