Aggregating data using aggregate() in R

1 year ago

In R programming, function aggregate() provides an easy way to calculate summary statistics of variables by specific groups in a…

Assessing Normality Assumption for Linear Regression in R

2 years ago

The normality assumption in linear regression is necessary to ensure the estimates of parameters are unbiased and the hypothesis testing…

Returning a dictionary with functions in Python

2 years ago

Dictionary is a data structure type in Python. One reason for why Python is so popular among programmers is that…

Dealing with missing values in R

2 years ago

In R programming, the value 'NA' is used to represent a missing value. Say we try to read a csv…

Recode variables in R

2 years ago

In data analysis it is often needed to set new values to a variable based on one or several conditions,…

Working with date values in R

2 years ago

R has rich resources of functions dealing with date values in data analysis. In this post, we introduce and show…

How to generate random numbers from various statistical distributions using R

2 years ago

n this post, we show how to generate random numbers into vector and matrix in R programming, from various statistical…

Creating a random sequence using sample() in R

2 years ago

It is not uncommon to generate random sequences in R programming. sample() function provides the feasibility of generating such random…

Estimating simple linear regression model using lm() in R

2 years ago

Linear regression is widely used to model the relationship between response or dependent variable and explanatory or independent variables. The…

Using exponential distributions in Python

2 years ago

The exponential distribution is modeling the probability distribution of the random time until next event occur in a Poisson event…