Write the r-code to extract various nutritional values

Assignment Help Applied Statistics
Reference no: EM132398217

Assignment

Question 1

(RCODE) Write the R-code to extract various nutritional values from different food varieties in the given nutrition XML document. If someone ate all the food items at once, plot a chart to compare it to the daily value for total-fat, saturated-fat, cholesterol, sodium, carb, fiber, protein.

DATA for this can be found in nutrional value xml file aattachment.

Question 2: 

Find the correlation between the cholesterol values and carbohydrate values that you extracted in Question 1. Please submit the R code and the value of Pearson's product-moment correlation (NOTE: REFER TO QUESTION 1 (RCODE) question 6:  Write an R-code for box plot to show the frequency of admitted students in UCBAdmissions data across various departments.

(This data is already installed in my Rstudio write the code for this one )

> ucba
  Admit Gender Dept Freq
1  Admitted   Male    A  512
2  Rejected   Male    A  313
3  Admitted Female    A   89
4  Rejected Female    A   19
5  Admitted   Male    B  353
6  Rejected   Male    B  207
7  Admitted Female    B   17
8  Rejected Female    B    8
9  Admitted   Male    C  120
10 Rejected   Male    C  205
11 Admitted Female    C  202
12 Rejected Female    C  391
13 Admitted   Male    D  138
14 Rejected   Male    D  279
15 Admitted Female    D  131
16 Rejected Female    D  244
17 Admitted   Male    E   53
18 Rejected   Male    E  138
19 Admitted Female    E   94
20 Rejected Female    E  299
21 Admitted   Male    F   22
22 Rejected   Male    F  351
23 Admitted Female    F   24
24 Rejected Female    F  317

Question 3

To understand whether age affects the predictive risk by dose levels. and associated complication risk for one of the treatments (X). a gene expression profiling was conducted after sampling whole blood from few subjects. You mayor may not consider the dose indices to have a cumulative effect i.e. you may consider these are a separate administration of the drug.

 

Dose Indiees

1

2

3

4

Age Categories

A

101

100

88

99

B

96

95

84

93

C

103

81

87

86

D

85

83

81

84

E

78

79

91

77

F

91

77

75

86

The table shows gene expression values by defined six age categories and four dose indices administered to these subjects. Identify if gene expression is affected significantly by any of the defined age categories or dose indices in the patients treated with -)C.
Explain your testing hypothesis, assumptions and interpret the results

Question 4

Month

Visits

January

2520

February

2577

March

2238

April

3200

May

3212

June

3600

July

2872

August

2452

September

3200

October

3242

November

3258

December

3408

From the given data:

1. Predict the number of visits in January of next year. using a five-period moving average.

2. Predict the number of visits in January. using a seven-period moving average

3. Plot the actual data and the results of five-period and seven-period moving averages. Identify the best predictor

Question 5

 

Voting Preferences

Rep

Dem

Ind

Male

200

150

50

Female

250

300

50


An opinion poll surveyed a random sample of 1000 voters and results were organized in the above table. Respondents were classified by gender (female or male) and by voting preference (Independent. Republican or Democrat).

Identify whether gender has a significant impact on voting preference by carrying out an appropriate statistical test. Provide the appropriate code for the statistical test.

Attachment:- Nutrition Data File.rar

Reference no: EM132398217

Questions Cloud

How can the structural frame : How can the Structural Frame, Symbolic Frame, and Political Frame of reference be beneficial or detrimental to leadership capability?
Primary role of education systems : The primary role of education systems is about sorting for a pyramidal power system. Discuss.
Forms of individual inadequacy : Is there a reason to think that the excessive instinct to power in some individuals is compensation for other forms of individual inadequacy?
Negotiated unreasonable agreements : If unions have negotiated unreasonable agreements, what responsibility does management or the administration bear for agreeing to these terms?
Write the r-code to extract various nutritional values : Write the R-code to extract various nutritional values from different food varieties in the given nutrition XML document. If someone ate all the food items.
About legal issue involving yourself : You will write about a legal issue involving yourself, or someone you know, or a legal issue that you know about although you don't know the persons involved
How should you act as a role model for implementing change : As a leader, how should you overcome your own resistance to a change in the workplace? How should you act as a role model for implementing change?
What are the key performance indicators : What are the Key Performance indicators (KPI) that helps Coca Cola measure its marketing success?

Reviews

Write a Review

Applied Statistics Questions & Answers

  How would you describe the shape of each dotplot

In addition to center and spread, you can also use descriptions of shape. Shape describes the patterns you see in the data. How would you describe the shape of each dotplot

  Does the evidence support the inspector claim

A quality control inspector believes that the variance in the diameters of soda cans, measured in millimeters, is greater for soda cans produced by Machine A than for soda cans produced by Machine B. Does the evidence support the inspector's claim

  How quickly people are served

The Burger corporation is looking at its fast-food franchises and in particular is interested in how quickly people are served. In one restaurant, where it receives most of its complaint, an analysis reveals the following. The attendants can serve, o..

  Using the binomial probability distribution

When using the binomial probability distribution for analyzing guesses on a multiple-choice quiz, what is wrong with letting "p" denote the probability of getting a correct answer while "x" counts the number of wrong answers?

  Use the limit theorem to find the mean and standard error

Use the Limit theorem to find the mean and standard error

  Problem - Pearson Correlation Coefficient Analysis

SPSS HOMEWORK - Problem Set 1: Pearson Correlation Coefficient Analysis - Write an APA-style Results section based on your analysis

  Utilizing the post-first feature

Utilizing the Post-First feature. You will not be able to see your classmates' posts until after you have made your own post. This is intentional. You must use your own work for answers to questions 1-5. If something happens that leads you to want to..

  Distinguish between descriptive and inferential statistics

Distinguish between Descriptive Statistics and Inferential Statistics. Indicate if it is quantitative or categorical and also indicate the scale of measurement.

  What is the proportion of customers

Find the upper boundary of the 95% confidence interval for the average unload time and what is the proportion of customers who buy service plans when they buy a computer?

  What happens to the power of test as alternative value of m

he power curve for a statistical test is a plot of the power = 1 - b on the vertical axis versus values of m. What happens to the power of the test as the alternative value of m moves away from 60?

  Your statistics instructor claims that 60 percent of

Your statistics instructor claims that 60 percent of the students who take her Elementary Statistics class go through life feeling more enriched. For some reason that she can't quite figure out, most people don't believe her. You decide to check this..

  Generate a frequency distribution and histogram

Generate a frequency distribution and histogram describing this information. Comment on whether the site seemed to be especially fast or slow coming up on any of the visits.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd