wilsonzhang746

Aggregating data using aggregate() in R

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

2 years ago

Assessing Normality Assumption for Linear Regression in R

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

2 years ago

Returning a dictionary with functions in Python

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

2 years ago

Dealing with missing values in R

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

2 years ago

Recode variables in R

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

2 years ago

Working with date values in R

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

2 years ago

How to generate random numbers from various statistical distributions using R

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

2 years ago

Creating a random sequence using sample() in R

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

2 years ago

Estimating simple linear regression model using lm() in R

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

2 years ago

Using exponential distributions in Python

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

2 years ago