Please help answer this question using R.
Data sets are provided by putting in R.
(will rate if answered by Tues 6/18)
R codes:
library(MASS)
attach(UScereal)
plot(sugars[shelf==1],calories[shelf==1],col=1,xlab='sugars',
ylab='calories')
points(sugars[shelf==2],calories[shelf==2],col=2)
points(sugars[shelf==3],calories[shelf==3],col=3)
legend(x=12,y=95,c('shelf=1','shelf=2','shelf=3'),col=c(1,2,3),pch=c(1,1,1))
R output :
Values corresponding to shelf =1 which have low sugars,have low calories .
Values corresponding to shelf=2, have both high values of sugars and calories
Values corresponding to shelf=3, have low values of sugar with high calorie values. There are a few outliers in this regard.
Please help answer this question using R. Data sets are provided by putting in R. (will...
Use R to do the following. please provide the code Import the data set `UScereal`, create a scatter plot of `calories` modeled by `sugars` using the `shelf` variable to create different plot characters. Add a legend to indicate the shelf number. Is there any patterns? (Use base R plotting for this problem.)
Using program R, please help solve:
Data set is given in program R and can be seen by putting in
code:
state.x77
x77<-data.frame(state.x77)
(if answered by Tuesday 6/11 evening, I will rate)
3.17 The state.x77 data set contains various information for each of the fifty United States. We wish to explore possible relationships among the variables. First, we make the data set easier to work with by turning it into a data frame. x77data.frame(state.x77) ; Now, make scatter plots of...
Using program R, please help solve:
(if answered by Tuesday 6/11 evening, I will rate)
3.32 The data set UScereal (MASS) contains information about cereals on a shelf of a United States grocery store. Make a table showing the relationship between manufacturer, mfr, and shelf placement, shelf. Are there any obvi ous differences between manufacturers?
3.32 The data set UScereal (MASS) contains information about cereals on a shelf of a United States grocery store. Make a table showing the relationship...
The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...
1. Which variables are ordinal? Which are nominal?
Nominal variables: and
Ordinal Variables: (although it is coded as continuous)
Answer Options:
1a. Nominal variables selections: Calories, Type, Protein or
Potassium, MFG
1b. Ordinal Variables selections: Calories, Shelf, Protein
2. Use Cols>Columns Viewer to obtain summary statistics.
Which, if any, of the variables is missing values?
The variables , , and have missing values. The data set has missing
values in total.
Answer Options:
2a. Calories, Carbo, Protein & Fat
2b....
Instructions for Excel Assignment 2 a) Using the data in the file (i.e., the values of Y and values of X), create a scatter plot with the variable Y plotted vertically and the variable X plotted horizontally. You are to add a trendline, the equation of the line and R to this scatter plot. You do not need to add a title to this plot. b) Run the 'Regression' analysis tool (found under DATA/Data Analysis). The output using this tool...
Instructions for Excel Assignment 2 a) Using the data in the file (i.e., the values of Y and values of X), create a scatter plot with the variable Y plotted vertically and the variable X plotted horizontally. You are to add a trendline, the equation of the line and R to this scatter plot. You do not need to add a title to this plot. b) Run the 'Regression' analysis tool (found under DATA/Data Analysis). The output using this tool...
For each of the data sets, create a scatter plot with the regression line and answer these questions What is r, r^2, Critical Value (CV)? In general, what does r^2 mean? What does r^2 mean specifically for the data set? What is the regression equation? Is there any positive or negative correlation? Interpret b1. Interpret b0. Forecast the next year. Model your answers off the Excel file of the solutions found under Content, 3B
For each of the data sets, create a scatter plot with the regression line and answer these questions. What is r, r2, Critical Value (CV)? In general, what does r2 mean? What does r2 mean specifically for the data set? What is the regression equation? Is there any positive or negative correlation? Interpret b1. Interpret b0. Forecast the next year. Year Revenue ($) 1 1002 2 1108 3 967 4 1054 5 1206 6 1400
Instructions for Excel Assignment
a) Using the data in the file (i.e., the values of Y and values
of X), create a scatter plot with the variable Y plotted vertically
and the variable X plotted horizontally. You are to add a
trendline, the equation of the line and R2 to this scatter plot.
You do not need to add a title to this plot.
b) Run the ‘Regression’ analysis tool (found under DATA/Data
Analysis). The output using this tool should...