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

What are the disadvantages of R?

1 Answers  


What are R topical programming and statistical relevance?

1 Answers  


How many ways are there to read and write files?

1 Answers  


How would you join multiple strings together?

1 Answers  


X is the vector c(5,9.2,3,8.51,na), what is the output of mean(x)?

1 Answers  


What are fundamental principles of debugging?

1 Answers  


What is iPlots?

1 Answers  


Why is R important for data science?

1 Answers  


What is the use of lattice package?

1 Answers  


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

1 Answers  


What are functions of Random forest in R?

1 Answers  


List out some of the function that R provides?

1 Answers  


Categories