Question: 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
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.
R Code
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
