CGR {CGR}R Documentation

CGR

Description

Compound Growth Rate for Capturing the Growth Rate Over the Period

Usage

CGR(variable, data, verbose = FALSE)

Arguments

variable

Time series data taken for the study

data

Name of the data taken for the study

verbose

Logical. If TRUE, the function prints detailed information about its progress. Default is FALSE.

Value

Returns a list containing the Compound growth rate for capturing the growth rated over the period and other model parameters. The list includes:

References

#'

Examples

{
library(CGR)
years <- 1:50
value<-rnorm(length(years),100, 50)
data <- data.frame(Year = years, Sales = round(value))
CGR_results <- CGR(variable = data$Sales, data = data)
print(CGR_results)
}

[Package CGR version 0.1.0 Index]