Question

In: Statistics and Probability

pl use r studio to do that What is the most appropriate analysis to perform on...

pl use r studio to do that

What is the most appropriate analysis to perform on the following data?  

x<-c(8.1, 9.4, 9.9, 9.6, 10.7, 10.2, 10.4, 13.6, 15.5, 17.8)

Y<-c(7.3, 8.6, 9.9, 9.6, 9.3, 9.2, 10.9, 10.7, 11.4, 16.1)

Determine Spearman’s Rho coefficient (2dp) for the following data.

x<-c(56,56,65,65,50,25,87,44,35)

y<-c(87,91,85,91,75,28,122,66,58)

Solutions

Expert Solution

Sol:

Rcode is

x<-c(56,56,65,65,50,25,87,44,35)

y<-c(87,91,85,91,75,28,122,66,58)
cor(x,y,method="spearman")

Output:
0.9114005

spearman   Rho coefficient=rho=0.9114005

there exists a strong positive relationship between x and y as x increases y increases and viceversa


Related Solutions

do the following in r studio Perform the Analysis of Variance of the grade point average...
do the following in r studio Perform the Analysis of Variance of the grade point average of the Design of Experiments subject . According to the following information. trat <- c (1,1,1,2,2,2,3,3,3,4,4,4) y <- c (7.66,6.98,7.80,5.26,5.44,5.80,7.41,7.33,7.04,3.51,2.91,3.66) trat <- as. factor (trat) data <- cbind (trat, y) y "is the dependent variable (grade point average) and the treatment is the variable" trat "is the type of test applied. Perform the following analyzes on the provided data: 1. Define the proposed experiment...
pl use R code to do that and show me the program Use a linear regression...
pl use R code to do that and show me the program Use a linear regression of Y~log(X) using the labtestdata.csv data to predict Y (2dp) when x = 250 on the unlogged scale? Calculate the F-value (1 dp) from an ANOVA on the regression of Y~log(X) using the data contained in labtestdata.csv abtestdata.csv y x 1.018746 1 1.508895 2 0.727282 3 1.787127 4 2.903983 5 3.181554 6 1.737834 7 2.715766 8 1.570552 9 3.046107 10 4.499675 11 4.240688 12...
R studio programing . can someone do an example of when to perform a one-sample wilcox...
R studio programing . can someone do an example of when to perform a one-sample wilcox signed-rank test. after, show modification to the previous function to perform a hypothesis comparing 2 population center with independent samples (mann-whitney test).
R studio: Show detailed working, including appropriate mathematical notation for each question. For most questions this...
R studio: Show detailed working, including appropriate mathematical notation for each question. For most questions this will involve showing your working from R, (e.g. cut-and-paste commands and output from an R session). The probability of a student owning a cat is known to be 0.44; and the probability of a student owning a dog is known to be 0.54. If the probability of owning both is known to be 0.36, calculate: (a) the probability of not owning a dog (b)...
when is it most appropriate to use entry-level staff to perform tests of controls?
when is it most appropriate to use entry-level staff to perform tests of controls?
Use R studio to do this problem. This problem uses the wblake data set in the...
Use R studio to do this problem. This problem uses the wblake data set in the alr4 package. This data set includes samples of small mouth bass collected in West Bearskin Lake, Minnesota, in 1991. Interest is in predicting length with age. Finish this problem without using Im() (a) Compute the regression of length on age, and report the estimates, their standard errors, the value of the coefficient of determination, and the estimate of variance. Write a sentence or two...
Perform a SWOT analysis that identifies which legal structure is most appropriate for your health services...
Perform a SWOT analysis that identifies which legal structure is most appropriate for your health services organization and explain why.
Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement...
Perform the following tasks on R Studio/R Construct a function called conv3 which inputs a measurement in centimeters and outputs the corresponding measurement in inches. However, if a negative value is entered as an input, no conversion of unit is done and an error message is printed instead.
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R...
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R STUDIO CODE WILL NOT SUFFICE. SOLVING WITHOUT THE USE OF R STUDIO IS NOT ACCEPTABLE. The previous question was: Annual salaries for a large company are approximately normally distributed with a mean of 49000 dollars and a standard deviation of 2000 dollars. One manager claims that all of his direct reports are paid "above the 75th percentile" for the company. What is the minimum...
IN WHAT TYPES OF SITUATIONS IS QUEUING ANALYSIS MOST APPROPRIATE? WHAT ARE THE MOST COMMON MEASURES...
IN WHAT TYPES OF SITUATIONS IS QUEUING ANALYSIS MOST APPROPRIATE? WHAT ARE THE MOST COMMON MEASURES OF SYSTEM PERFORMANCE IN A QUEUING ANALYSIS?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT