CGR: CGR

View source: R/CGR.R

CGRR 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:

  • CGR: Growth rate calculated for the data.

  • AoS: The value derived by taking anti log of the slope of exponential model.

References

#'

  • • Shankar, S. V., Chandel, A., Gupta, R. K., Sharma, S., Chand, H., Kumar, R., ... & Gowsar, S. N. (2023). Corrigendum: Exploring the dynamics of arrivals and prices volatility in onion (Allium cepa) using advanced time series techniques. Frontiers in Sustainable Food Systems, 7, 1290515. DOI: 10.3389/fsufs.2023.1208898

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)
}

CGR documentation built on May 29, 2024, 1:34 a.m.

Related to CGR in CGR...