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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you convert a factor variable to numeric in r language?

148


Given a vector of numbers, how would you turn the values into scientific notation?

103


How can you verify if a given object “X” is a matrix data object?

118