How to get p-value from linear regression model

In this tutorial, we will learn how to extract p-value from a linear regression fit object in R. We will use two approaches to pull out p-value and other statistics of interest from a linear regression model. First we will extract the p-value directly from summary of the linear regression fit object using coefficients argument.… Continue reading How to get p-value from linear regression model

Computing Correlation Between Multiple Variables in a dataframe

Compute correlations between multiple variables in a dataframe

corrr package part of tidymodels meta R packages can compute correlation between multiple variables and offers tools further dissect and visualize the correlation. In this tutorial, we will learn how to use correlate() function corrr package to compute correlation all numerical variables in a dataframe. First, we load the packages needed and look at the… Continue reading Computing Correlation Between Multiple Variables in a dataframe

Computing Correlation with R

In this tutorial, we will learn how to compute correlation between two numerical variables in R using cor() function available in base R. Correlation between two numerical variables can range from -1 to +1, where -ve values suggest these two variables negatively correlated and positive value suggest that the variables are positively correlated. When there… Continue reading Computing Correlation with R

dplyr between(): find if numerical values are within a range.

In this tutorial we will learn how to use dplyr’s between() function to find if one or more numerical values are in a range using multiple examples. We will first start with a single numeric value and find out if it is within a range. And then in the next example, we will use a… Continue reading dplyr between(): find if numerical values are within a range.

Exit mobile version