What r-codes, would I need to answer questions 1?
Extracted text: The University of Rochester Alumni and Advancement Center (AAC) is looking to analyze trends among donors. In particular, they have a sample of 94 donors who gave a gift in response to a recent solicitation. Suppose you have been hired by the AAC to analyze trends among the donors. The data are stored in the file donors.csv. For each question: • Provide appropriate summaries (both graphic and numeric) to begin exploring the data. • Assess all assumptions needed for performing the corresponding test to answer the question of interest. • Determine the most appropriate test and perform it. - Make sure to state your hypotheses, the test statistic, and p-value. Interpret the results and summarize your findings. The more robust your responses are, the better. Think of this as you having been hired and you are in charge of running all applicable analyses and putting together a nice report of what you have found. Use a significance level of a = 0.05 for this entire project. 1. Examine the affiliation of the donor (affiliation, either undergraduate alumni, graduate alumni, parent, or friend). Each donor falls into only one category. Based on past solicitations, it is believed that donations are equally likely from each of the affiliations. Does this appear to still be true? 2. Examine the age of donors (age, in years) by type of donation (type, either academic or medical). Does the average age of donors differ based on the type of donation? In addition to answering this question, calculate the power of the parametric test to detect a difference of 4 years in age. 3. Examine time since last donation (time, in days) by affiliation (affiliation). Does the average time since last donation differ based on affiliation? AAC staff would like to know whether alumni wait less time between donations than non-alumni (i.e. parents and friends), whether undergraduates wait less time between donations than graduate alumni, and whether friends wait less time between donations than parents. 4. Examine type of donation by sex. In particular, is the type of donation related to the sex of the donor? 5. Consider only donations made by graduate alumni (i.e. affiliation=="Graduate Alumni"). For these donors, is the type of donation related to their sex? 6. How can donation amount (amount, in US dollars) be best predicted? To examine this question, make summary plots and display basic numerical summaries. Use a model selection method (with appropriate justification as to why you choose it) to determine the predictors you feel best predict donation amount. Then, fit the resulting model, assess the model assumptions, discuss the significance of the model and predictors, and generally discuss how well you believe the model works in describing donation amount.
Extracted text: donors income time affiliation sex type age amount 204800 248 Undergraduate Alumni female Medical 39 445.93 56000 141 Undergraduate Alumni other Academic 50 114.56 65600 69 Undergraduate Alumni other Medical 48 181.33 70400 288 Undergraduate Alumni male Medical 34 143.87 90800 308 Friend male Academic 49 120.47 108800 192 Graduate Alumni male Academic 51 157.91 132800 166 Undergraduate Alumni male Medical 42 160.66 123200 229 Parent female Medical 43 205.9 76400 173 Parent other Academic 47 108.32 78800 360 Graduate Alumni female Academic 56 122.5 51200 316 Undergraduate Alumni female Academic 49 -7.2 77600 194 Parent male Medical 34 65.67