Q2) part 1 -Several types of correlation coefficients exist. Go to the help of the cor() function and find which correlation coefficient is calculated by default. -Add the appropriate argument to the cor() function in the previous command so that the Spearman correlation is calculated instead. part 2 -What is the maximum value of weight in the entire dataset? -How many missing values are there for age? -What is the mean value for BMIpre for the two surgical techniques (variable surgery)? -What is the Pearson correlation between the BMI before the operation (BMIpre) and the BMI after the operation (BMIpost)?
Q2)
part 1
-Several types of correlation coefficients exist. Go to the help of the cor() function and find which correlation coefficient is calculated by default.
-Add the appropriate argument to the cor() function in the previous command so that the Spearman correlation is calculated instead.
part 2
-What is the maximum value of weight in the entire dataset?
-How many missing values are there for age?
-What is the mean value for BMIpre for the two surgical techniques (variable surgery)?
-What is the Pearson correlation between the BMI before the operation (BMIpre) and the BMI after the operation (BMIpost)?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
Repeat the previous steps but followed by the command that corrects the outlier.