Category: R News

The Keep Function

Reading Time: 2 minutes Occasionally when I am jotting some code I find myself creating several temporary variables with the intention of later getting rid of them. These variables involve...continue reading.

The Keep Function

Reading Time: 2 minutes Occasionally when I am jotting some code I find myself creating several temporary variables with the intention of later getting rid of them. These variables involve...continue reading.

Sales Funnel visualization with R

Sales (purchasing or conversion) Funnel is a consumer-focused marketing model which illustrates the theoretical customer journey towards the purchase of a product or service. We will study a very simple example...continue reading.

Granger Causality Test

# READ QUARTERLY DATA FROM CSV library(zoo) ts1 <- read.zoo(‘Documents/data/macros.csv’, header = T, sep = ",", FUN = as.yearqtr) # CONVERT THE DATA TO STATIONARY TIME SERIES ts1$hpi_rate <- log(ts1$hpi...continue reading.