Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is correlation? How would you measure correlation in r?



What is correlation? How would you measure correlation in r?..

Answer / Vikash Kumar Anand

Correlation is a statistical measure that determines the strength and direction of a linear relationship between two variables. In R, the function cor() can be used to calculate the correlation coefficient. For example, if X and Y are vectors containing data for the two variables, the correlation coefficient (r) can be calculated as follows: r <- cor(X, Y). The value of r ranges from -1 to 1. A value close to 1 indicates a strong positive linear relationship between X and Y, while a value close to -1 indicates a strong negative linear relationship.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Explain what is transpose?

1 Answers  


What are various ways to write la oop in r?

1 Answers  


What are the steps to build and evaluate a linear regression model in r?

1 Answers  


Why is library() function used in r?

1 Answers  


How would you create a scatterplot using ggplot2 package?

1 Answers  


What is vectorization in r?

1 Answers  


How do I sort in descending order in r?

1 Answers  


What is function definition?

1 Answers  


What is using all() and any()?

1 Answers  


How to remove all the objects?

1 Answers  


What is the use of stringr package.

1 Answers  


Name various sectors that are using R?

1 Answers  


Categories