Question

2. (10 pts) Textbook problem 10.5.2 only part a), page 389 Note that you are comparing the sex ratios, so when you input thePlease show me the R outputs with the work

0 0
Add a comment Improve this question Transcribed image text
Answer #1

i)

alpha = 0.05

Null and Alternate Hypothesis

H0: The two variables (Site and Sex) are independent.

H1: The two variables are dependent means associated.

ii)

xyz <- matrix(c(89,34,74,31,20,136), nrow=3,ncol=2)

     [,1] [,2]

[1,]   89   31

[2,]   34   20

[3,]   74 136

chisq.test(xyz,correct=FALSE)

We will use Pearson's Chi-squared test

data: xyz

X-squared = 49.741, df = 2, p-value = 1.581e-11

Result

Here p-value is less than 0.05, So we reject the null hypothesis means Site and Sex are assosciated.

Add a comment
Know the answer?
Add Answer to:
Please show me the R outputs with the work 2. (10 pts) Textbook problem 10.5.2 only...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need the R code please 2. (10 pts) Textbook problem 10.5.2 only part a), page 389 Note that you are comparing the...

    I need the R code please 2. (10 pts) Textbook problem 10.5.2 only part a), page 389 Note that you are comparing the sex ratios, so when you input the data in R, you should make the data matrix as follows (because R compares columns with columns). Males Females 89 31 Site 1 Site II Open Ground 34 20 136 Write the null and alternative hypotheses in words. Use R to run a chi-square test to compare the sex ratios...

  • Please show me the R outputs with the answer 3. (10 pts) Elderly patients who had...

    Please show me the R outputs with the answer 3. (10 pts) Elderly patients who had suffered hip fractures were randomly assigned to receive either a placebo (n=1,062) or zolendronic acid (n=1,065) in a double blind clinical trial. During the trial 139 placebo patients and 92 zolendronic acid patients had new fractures. Let pl and p2 represent the probabilities of fracture on placebo and zolendronic acid, respectively. (a) Construct the 95% confidence interval for (pl-p2) in R. Show your code...

  • Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem...

    Really short question! Please help me to solve ONLY part(b) with R code. Thank you! Problem 4 [26 points] (Section 2.4): Consider a one-sample z-test (known variance) with hypotheses: Ho: μ lo vs H, μ *Ho. The probability of Type II error can be written in the form |ß D(%2_Jnd)-0(-%2_Jnd) where Φ㈠ is the CDF of N(0,1), d Isyo, and δ is the difference between the true mean and the mean under Ho (a) [10 points] Based on the fact...

  • Please show me the source code of this problem with C language (I only learned C...

    Please show me the source code of this problem with C language (I only learned C before), thank you~ the Note that you must display 4.4 Write a program that computes the sum of all the negative integers in a list As input, the program is to read the data from the data file SUMNEG. 8.80.0 of integers. dugio DAT. The data file has the following format: ore (number of integers in list) line 1 dugdeer ) wo bne line...

  • Please show all the steps you used to solve this problem including calculator functions. 2. The...

    Please show all the steps you used to solve this problem including calculator functions. 2. The General Social Survey regularly asks individuals to disclose their religious affiliation. The following data represent the religious affiliation of young adults, aged 18 to 29, in the 1970s, 1980s, 1990s, and 2000s. 1970s 1980s 1990s 2000s 2395 3022 212 624 Unaffiiated (no religio) 27 412404 207 Afmliated a) If there is no relation between a particular decade and religious affiliation, what is the expected...

  • The Olympic Summer Games is an international multi-sport event that has been held every four years...

    The Olympic Summer Games is an international multi-sport event that has been held every four years since 1896. Competitors from countries across the world compete against one another, representing their countries, in one or more sports events such as wrestling, rowing, high jump, running races, etc. Events may be separated by the sex of the competitors (male or female) or may be mixed (i.e. males and females competing with each other in the same event). At the end of each...

  • I literally have no idea what I’m doing. Help!!! Please show work!! Write an essay using...

    I literally have no idea what I’m doing. Help!!! Please show work!! Write an essay using Word and post it as an attachment to the discussion. Cover the following points. Choose a data set from Stat Disk using one of the following files from 13th Edition Elementary Statistics: Oscar Winner Freshman 15 Word Count Garbage Weights Passive and Active Smoke If the file contains more than one variable, choose a quantitative variable. Create a histogram using your chosen variable and...

  • Article Summary I Read the article below and provide feedback by writing a 2 page summary....

    Article Summary I Read the article below and provide feedback by writing a 2 page summary. Please write in essay format (you may include the questions but the response should be in essay format) Must include the following information Title of the article Author(s) of the article Reference list (include the article itself and any other reference material such as another article that is cited in your summary). Use the reference list in the article to get information about another...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT