Question
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
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.

Ha: The two variables are associated.

ii)

datatable <- 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(datatable,correct=FALSE)

 
        Pearson's Chi-squared test
 
data:  datatable
X-squared = 49.741, df = 2, p-value = 1.581e-11

Result

Since the p-value is less than 0.05, we reject the null hypothesis in favour of alternate hypothesis.

Add a comment
Know the answer?
Add Answer to:
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...
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
  • Please show me the R outputs with the work 2. (10 pts) Textbook problem 10.5.2 only...

    Please show me the R outputs with the work 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 Site I 31 Site II 34 20 74 Open Ground 136 Write the null and alternative hypotheses in words Use R to run a chi-square test to...

  • can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER IN...

    can you sovle this problem, also I need the code for part d. thanks Problem #5 Ri Vy= Probe I R- 1502 o VOLTMETER INPUT CIRCUIT Probe 2 Express resistance in ohms (2) and voltage in volts (V) Requirements-Part 1 (voltmeter not attached yet) a) Suppose you want to produce a voltage of 1 V across resistor R2 (i.e. Vor 1 V) Use the voltage divider equation to find the value of Ri that is needed to do this. b)...

  • I need help with questions 1 through 2, thank you! The Esatina salamanders (Ensatina eschscholtzii), shown...

    I need help with questions 1 through 2, thank you! The Esatina salamanders (Ensatina eschscholtzii), shown above, live along the West Coast of North America from Vancouver to Baja California. We will be focusing two populations: 1. individuals that live in Northern California and represent a more ancestral population 2. individuals that live in Southern California. Researchers have found that these all individuals of this salamander species have two color phenotype, either red or blotchy. Genetic analysis has shown that...

  • 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...

  • Can you please provide the formula for the worksheet also. CASE PROBLEMS Level 1- Analyzing Sales...

    Can you please provide the formula for the worksheet also. CASE PROBLEMS Level 1- Analyzing Sales for Crèmes Ice Cream Judd Hemming is the eastern regional marketing manager for Crèmes Ice Cream. Eac quarter, he completes two separate analyses: an analysis comparing ice cream flavor sale volumes from all regional locations with the same quarter sales volumes from the previou year and an analysis comparing total sales in dollars, including mean, median, mode, and standard deviation, of sales by store....

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