Review Writing on Chi-Squared Test & Proportions of Overweight And Cancer, P-Value - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 

Chi-squared test  

I need help in writing a few lines of codes in R to do a Chi-squared test comparing the proportions of overweight and cancer. Our prof has provided a portion of the codes for overweight and showed the output in italics. He required us to add a few more lines of codes to load the .csv data file on the desktop so as to perform the chi _squared test for p-value. 

This question compares the proportion of overweight and cancer from the data file

a. load the csv file on your desk top. 

b. extract only two columns of data from the csv file: the BMI and Cancer columns

c. compare the proportion of overweight and cancer 

BMI >= 25 is defined as overweight and is assigned (1) and not overweight is assigned (0). 

d. define the variables and the object g 

1   cancer <-g $cancer

3   overweight <- ifelse(g$bmi>=25,1,0) 

  1.  check variable and object g to make sure everything makes sense
  2.  the table says that of the 66 observations, 34 are not overweight and 32 are overweight
  3.  set the null hypothesis: that overweight and cancer are not associated
  4.  next perform a chi-squared test, let the y axis be cancer, the dependent variable and x axis the independent variable1 
  5. chi. test( x=overweight, y= cancer) 
  6. Find the p-value and draw conclusion.

 

Note/-Please review the codes in italics provided and let me know if you can add a few more lines of code to do the test as required and let me know the p-value. 

 

This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.