Economics with Stata
当前位置:以往案例 > >Economics with Stata
2023-01-04

This project should be completed with Stata. When submitting your project, copy-paste your Stata code at the bottom of the document you submit. You will learn how to use Stata in section.

The data set background_survey contains the answers you and your classmates gave to some of the questions in the background survey. Gender is a variable equal to 1 for females and to 0 for males. Job is a variable equal to 1 for students who have a job and to 0 for students who do not. IV_weekend_safety_fee is a variable equal to 1 for students in favor of increasing tuition fees by 50 dollars to implement new security measures and ensure Isla Vista (IV) is safer during weekends, and to 0 for students who answered they were against this idea. Non_response is a variable equal to 1 for students who said they would not have answered the survey if answering had not been worth 4% of the final grade, while this variable is equal to 0 for students who said they would still have answered.

The students who answered the question about the increase in tuition fees to implement more safety measures in IV were randomly divided into 10 groups of equal size. The number of the group a student is assigned to is in the variable randomdraw, which takes values from 1 to 10. Each group of students with the same value of the variable randomdraw is a random sample of size n drawn without replacement from the total population of N students who answered this question.

1. Among those who answered the question (N students), what is the percentage of your classmates in favor of increasing tuition fees by 50 dollars to implement new security measures and ensure Isla Vista is safer during weekends? Hereafter, let p denote that number.

2. Compute the percentage of students in favor of increasing tuition fees to implement security measures in IV, in the first random sample of students (those with randomdraw=1). This percentage is your estimate of p based on the first random sample and is denoted


在线提交订单