Provide in the plain text R commands (or software of your choice) that finds/solves the following:
- A study investigates the distribution of annual income for heads of households living in public housing in Chicago. For a random sample of size 30, the annual incomes (in thousands of dollars) are in the Chicago data file.
-
- Based on a descriptive graphic, describe the shape of the sample data distribution. Find and interpret point estimates of the population mean and standard deviation.
- Construct a 95% confidence interval for μ, using R software (or software of your choice).
2.The Anorexia data file contains results for the cognitive behavioral and family therapies and the control group. Using data for the 17 girls who received the family therapy:
-
- Conduct a descriptive statistical analysis using graphs and numerical summaries.
- Construct a 95% confidence interval for the difference between the population mean weight changes for the family therapy and the control.
Datasets needed are at Index of Datasets
Useful functions in R to solve problems in this assignment: read.table, hist, t.test