Module 2, Week 1, gretl problem set 3
Module 2, Week 1, gretl problem set 3
Use gretl and the “DC Crime” dataset to answer the following questions.
The level of observation in this dataset is at the census block level.
1. Estimate the mean for the variables “arrests”, “package”, and “lights”.
2. Rename the variable schools “numschool”. Create a new variable named “school” that equals 0 if no schools are present and equals 1 if any schools are present. Estimate the proportion of blocks where a school is present.
3. Create a new variable named “highue” that equals 0 if a block less than 10% unemployment and equals 1 if a block has 10% unemployment or higher. Estimate the proportion of blocks with unemployment of 10% or higher.
4. Calculate confidence intervals for “arrests”, “package”, “lights”, “school”, and “highue”.
5. Graph a frequency distribution for the variable “school”. Graph a frequency distribution for the variable “highue”. Which variable is more evenly distributed?
6. Graph an estimated density for the variable “lights”. Graph an estimated density for the variable “arrests”. Which variable’s distribution is more skewed and it which direction is it skewed?
Comments
Post a Comment