Question: B: Empirical Analysis Here, we will extend the analyses we started in Homework 5 to consider the questions of covariate balance and potential confounding. As

B: Empirical Analysis
Here, we will extend the analyses we started in Homework 5 to consider the questions of covariate balance and potential confounding. As we've stated, if Project STAR really was a clean RCT, the answers to these questions should be clear. We will limit our analysis to the kindergarten class.
Overlap
Let's start by creating a table of summary statistics for the test score variable and key student and teacher characteristics. Again, only focusing on the kingergarten class.
First, create the test score variable and new female, white and freelunch indicators using the information in gender, ethnicity and lunchk. Note: Although ethnicity has six categories, all but a few students are either White or Black.
```
STAR2- STAR2%>%
mutate(white = case_when(ethnicity =="" ~ 1, TRUE ~ 0), #race
female = case_when(gender =="" ~ 1, TRUE ~ 0), #gender
freelunch = case_when(lunchk =="" ~ 1, TRUE ~ 0)) #lunch
```
Next, use the st function to construct a table of summary statistics for the test-score variable and controls (teacher experience experiencek, student gender - female, race - white, and eligibility for free lunch - freelunch ) in the kindergarten classes.
```
st(STAR2, digits =2, fixed.digits = TRUE, numformat = NA,
vars=c('','','','',''),
group='', # review documentation/prior hw or slides for variable name
title="Table 1."
)
```
B: Empirical Analysis Here, we will extend the

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 Programming Questions!