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

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)...
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...
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?
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...
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement...
Perform the following tasks on R Studio Construct a function called conv1 which inputs a measurement in centimeters and outputs the corresponding measurement in inches and construct another function called conv2 which inputs a measurement in centimeters and outputs the corresponding measurements in inches, feet, and meters
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT